Example #1
0
    def test_invalid_name(self):
        customer_validation = CustomerValidation(self.customer)
        self.customer.name = "Test2"
        error = customer_validation.validate_name()

        self.assertNotEqual(error, None)
Example #2
0
    def test_validate_name(self):
        customer_validation = CustomerValidation(self.customer)
        self.customer.name = "New Name"
        error = customer_validation.validate_name()

        self.assertEqual(error, None)