You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
527 B

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]")