def validate_arguments(args): validate_url(args['endpoint']) validate_income(args['income']) validate_zipcode(args['zipcode']) validate_age(args['age'])
def test_no_valid_zipcode(self): zipcode = "64gyt" self.assertRaises(Exception, lambda: validations.validate_zipcode(zipcode))