示例#1
0
 def test_does_not_match_string_containing_only_whitespace(self):
     self.assertMismatch(IsNonEmptyString.match(whitespace),
                         "%r is whitespace" % whitespace)
示例#2
0
 def test_does_not_match_non_strings(self):
     self.assertMismatch(IsNonEmptyString.match(1234),
                         "1234 is not a string")
示例#3
0
 def test_does_not_match_empty_string(self):
     self.assertMismatch(IsNonEmptyString.match(""), "'' is empty")