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.

17 lines
499 B

  1. from hc.test import BaseTestCase
  2. class AccountsAdminTestCase(BaseTestCase):
  3. def setUp(self):
  4. super().setUp()
  5. self.alice.is_staff = True
  6. self.alice.is_superuser = True
  7. self.alice.save()
  8. def test_it_shows_profiles(self):
  9. self.client.login(username="[email protected]", password="password")
  10. r = self.client.get("/admin/accounts/profile/")
  11. self.assertContains(r, "[email protected]")
  12. self.assertContains(r, "[email protected]")