MCPcopy
hub / github.com/django/django / test_asuperuser

Method test_asuperuser

tests/auth_tests/test_basic.py:80–87  ·  view source on GitHub ↗

Check the creation and properties of a superuser

(self)

Source from the content-addressed store, hash-verified

78 self.assertTrue(super.is_staff)
79
80 async def test_asuperuser(self):
81 "Check the creation and properties of a superuser"
82 super = await User.objects.acreate_superuser(
83 "super", "super@example.com", "super"
84 )
85 self.assertTrue(super.is_superuser)
86 self.assertTrue(super.is_active)
87 self.assertTrue(super.is_staff)
88
89 def test_superuser_no_email_or_password(self):
90 cases = [

Callers

nothing calls this directly

Calls 1

acreate_superuserMethod · 0.80

Tested by

no test coverage detected