def test_admin_allowed(self): subjectadmin_required(self.testhelper.s1admin, self.testhelper.s1.id)
def test_superuser(self): subjectadmin_required(self.testhelper.superuser, None) # Calls is_superuser and exits without further checks