def test_no_valid_scheme(self):
        url = "no_valid_url"

        self.assertRaises(Exception, lambda: validations.validate_url(url))
Beispiel #2
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_network_locator(self):
        url = "http://"

        self.assertRaises(Exception, lambda: validations.validate_url(url))