def test_create_superuser_is_successful(self):
    ' Test that create a new superuser '
    user = get_user_model().objects.create_superuser('example@example.com', '1234')
    self.assertTrue(user.is_superuser)
    self.assertTrue(user.is_staff)
Test that create a new superuser
def test_create_superuser_is_successful(self):
    '  '
    user = get_user_model().objects.create_superuser('example@example.com', '1234')
    self.assertTrue(user.is_superuser)
    self.assertTrue(user.is_staff)