Ejemplo n.º 1
0
 def test_is_blank_ignores_valid_strings(self):
     strings = ["hi", "h", "hel212"]
     for string in strings:
         assert is_blank(string) != True
 def __passes_validations(user):
     return (
         (not is_blank(user.username))
         and (not is_blank(user.password))
         and (User.find_by_username(user.username) == None)
     )
Ejemplo n.º 3
0
 def test_is_blank_identifies_blank_strings(self):
     blanks = ["", " ", " \n\n\n ", None]
     for string in blanks:
         assert is_blank(string) == True