from hc.test import BaseTestCase
|
|
|
|
|
|
class AccountsAdminTestCase(BaseTestCase):
|
|
|
|
def setUp(self):
|
|
super(AccountsAdminTestCase, self).setUp()
|
|
|
|
self.alice.is_staff = True
|
|
self.alice.is_superuser = True
|
|
self.alice.save()
|
|
|
|
def test_it_shows_profiles(self):
|
|
self.client.login(username="[email protected]", password="password")
|
|
|
|
r = self.client.get("/admin/accounts/profile/")
|
|
self.assertContains(r, "[email protected]")
|
|
self.assertContains(r, "[email protected]")
|