def test_create_user_with_lowercase_email(self):
    ' Test creating a new user with an lowercase email words '
    payload = {'email': 'example@example.com', 'password': '1111qqqq='}
    user = get_user_model().objects.create_user(email=payload['email'], password=payload['password'])
    self.assertEqual(user.email, payload['email'].lower())
Test creating a new user with an lowercase email words
def test_create_user_with_lowercase_email(self):
    '  '
    payload = {'email': 'example@example.com', 'password': '1111qqqq='}
    user = get_user_model().objects.create_user(email=payload['email'], password=payload['password'])
    self.assertEqual(user.email, payload['email'].lower())