def test_invalid_phone(self): customer_validation = CustomerValidation(self.customer) self.customer.phone = "string" error = customer_validation.validate_phone() self.assertNotEqual(error, None)
def test_with_plus_sign(self): customer_validation = CustomerValidation(self.customer) self.customer.phone = "+442 300 1411" error = customer_validation.validate_phone() self.assertEqual(error, None)