def test_create_user_with_invalid_email(self):
    ' Test creating a new user with an invalid email address '
    with self.assertRaises(ValueError):
        get_user_model().objects.create_user(None, '1234325')
Test creating a new user with an invalid email address
def test_create_user_with_invalid_email(self):
    '  '
    with self.assertRaises(ValueError):
        get_user_model().objects.create_user(None, '1234325')