Пример #1
0
def validate_arguments(args):
    validate_url(args['endpoint'])
    validate_income(args['income'])
    validate_zipcode(args['zipcode'])
    validate_age(args['age'])
Пример #2
0
    def test_no_valid_zipcode(self):
        zipcode = "64gyt"

        self.assertRaises(Exception, lambda: validations.validate_zipcode(zipcode))