def login_as_admin(self):
        self.admin = factories.Superuser()
        self.login_user(self.admin)
Helper to login as an admin user
dataset/ETHPy150Open caktus/django-timepiece/timepiece/entries/tests/test_timesheet.py/StatusTest.login_as_admin