def test_email_normalize(self):
    'Testing weather email is in normalize form or not'
    email = 'example@example.com'
    user = get_user_model().objects.create_user(email, 'test123')
    self.assertEqual(user.email, email.lower())
Testing weather email is in normalize form or not
def test_email_normalize(self):
    
    email = 'example@example.com'
    user = get_user_model().objects.create_user(email, 'test123')
    self.assertEqual(user.email, email.lower())