Example #1
0
    def test_invalid_phone(self):
        customer_validation = CustomerValidation(self.customer)
        self.customer.phone = "string"
        error = customer_validation.validate_phone()

        self.assertNotEqual(error, None)
Example #2
0
    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)