|
@@ -5,7 +5,7 @@ from misago.admin.testutils import AdminTestCase
|
|
|
|
|
|
class UserProfileViewsTests(AdminTestCase):
|
|
class UserProfileViewsTests(AdminTestCase):
|
|
def setUp(self):
|
|
def setUp(self):
|
|
- super(ChangeForumOptionsTests, self).setUp()
|
|
|
|
|
|
+ super(UserProfileViewsTests, self).setUp()
|
|
self.link_kwargs = {
|
|
self.link_kwargs = {
|
|
'user_slug': self.test_admin.slug,
|
|
'user_slug': self.test_admin.slug,
|
|
'user_id': self.test_admin.pk
|
|
'user_id': self.test_admin.pk
|
|
@@ -13,16 +13,16 @@ class UserProfileViewsTests(AdminTestCase):
|
|
|
|
|
|
def test_user_posts_list(self):
|
|
def test_user_posts_list(self):
|
|
"""user profile posts list has no showstoppers"""
|
|
"""user profile posts list has no showstoppers"""
|
|
- response = self.client.get(reverse('misago:user_posts'),
|
|
|
|
- kwargs=self.link_kwargs)
|
|
|
|
|
|
+ response = self.client.get(reverse('misago:user_posts',
|
|
|
|
+ kwargs=self.link_kwargs))
|
|
|
|
|
|
self.assertEqual(response.status_code, 200)
|
|
self.assertEqual(response.status_code, 200)
|
|
self.assertIn('posted no messages', response.content)
|
|
self.assertIn('posted no messages', response.content)
|
|
|
|
|
|
def test_user_threads_list(self):
|
|
def test_user_threads_list(self):
|
|
"""user profile threads list has no showstoppers"""
|
|
"""user profile threads list has no showstoppers"""
|
|
- response = self.client.get(reverse('misago:user_threads'),
|
|
|
|
- kwargs=self.link_kwargs)
|
|
|
|
|
|
+ response = self.client.get(reverse('misago:user_threads',
|
|
|
|
+ kwargs=self.link_kwargs))
|
|
|
|
|
|
self.assertEqual(response.status_code, 200)
|
|
self.assertEqual(response.status_code, 200)
|
|
self.assertIn('started no threads', response.content)
|
|
self.assertIn('started no threads', response.content)
|