Beispiel #1
0
def validate_arguments(args):
    validate_url(args['endpoint'])
    validate_income(args['income'])
    validate_zipcode(args['zipcode'])
    validate_age(args['age'])
    def test_no_valid_age(self):
        age = "yt"

        self.assertRaises(Exception, lambda: validations.validate_age(age))