def test_validate_string_wrong_type(self): """ It fails if the value is not a string. """ self.assertFalse(validate_string(1))
def test_validate_string_str(self): """ Regular Python strings pass. """ self.assertTrue(validate_string('hello'))