from hc.test import BaseTestCase


class AccountsAdminTestCase(BaseTestCase):
    def setUp(self):
        super().setUp()

        self.alice.is_staff = True
        self.alice.is_superuser = True
        self.alice.save()

    def test_it_shows_profiles(self):
        self.client.login(username="alice@example.org", password="password")

        r = self.client.get("/admin/accounts/profile/")
        self.assertContains(r, "alice@example.org")
        self.assertContains(r, "bob@example.org")
