def test_create_superuser(self):
    'Test for creating super user'
    email = 'example@example.com'
    password = 'Password123'
    user = get_user_model().objects.create_superuser(email=email, password=password)
    self.assertTrue(user.is_staff)
    self.assertTrue(user.is_superuser)
Test for creating super user
def test_create_superuser(self):
    
    email = 'example@example.com'
    password = 'Password123'
    user = get_user_model().objects.create_superuser(email=email, password=password)
    self.assertTrue(user.is_staff)
    self.assertTrue(user.is_superuser)