1 from django.test import TestCase
2 from forum.models.user import *
4 class UserTest(TestCase):
5 fixtures = ['users.xml']
8 self.client.login(username='super', password='secret')
15 def test_gravatar(self):
22 def test_get_absolute_url(self):
25 def test_get_messages(self):
28 def test_delete_messages(self):
31 def test_get_profile_url(self):
34 def test_get_profile_link(self):
37 def test_get_visible_answers(self):
40 def test_get_vote_count_today(self):
43 def test_get_reputation_by_upvoted_today(self):
46 def test_get_flagged_items_count_today(self):
49 def test_can_view_deleted_post(self):
52 def test_can_vote_up(self):
55 def test_can_vote_down(self):
58 def test_can_flag_offensive(self):
61 def test_can_view_offensive_flags(self):
64 def test_can_comment(self):
67 def test_can_like_comment(self):
70 def test_can_edit_comment(self):
73 def test_can_delete_comment(self):
76 def test_can_accept_answer(self):
79 def test_can_edit_post(self):
82 def test_can_retag_questions(self):
85 def test_can_close_question(self):
88 def test_can_reopen_question(self):
91 def test_can_delete_post(self):
94 def test_can_upload_files(self):