def test_create_user_with_email_successful(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'])
    self.assertTrue(user.check_password(payload['password']))
def test_create_user_with_email_successful(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'])
    self.assertTrue(user.check_password(payload['password']))