Esempio n. 1
0
    def test_should_return_error_given_invalid_customer(self):
        customer_validation = CustomerValidation(self.customer)
        self.customer.name = ""
        error = customer_validation.validate()

        self.assertNotEqual(error, None)
Esempio n. 2
0
    def test_should_not_return_error_given_valid_customer(self):
        customer_validation = CustomerValidation(self.customer)
        error = customer_validation.validate()

        self.assertEqual(error, None)