Esempio n. 1
0
 def validate(self):
     errors = []
     validators = [check_url(
         self.url, 'Url'), check_integer(self.project_id, 'Project ID')]
     for error in validators:
         if error:
             errors.append(error)
     return errors
Esempio n. 2
0
 def test_check_integer(self):
     assert check_integer("12312") == None
     assert check_integer("233.121") == "ID is not a integer"
Esempio n. 3
0
 def test_check_integer(self):
     assert check_integer("12312") == None
     assert check_integer("233.121") == "ID is not a integer"