def test_does_not_match_string_containing_only_whitespace(self): self.assertMismatch(IsNonEmptyString.match(whitespace), "%r is whitespace" % whitespace)
def test_does_not_match_non_strings(self): self.assertMismatch(IsNonEmptyString.match(1234), "1234 is not a string")
def test_does_not_match_empty_string(self): self.assertMismatch(IsNonEmptyString.match(""), "'' is empty")