Exemple #1
0
 def test_is_string_with_dict(self):
     self.assertFalse(IO.is_string({'ok': 'ok'}))
Exemple #2
0
 def test_is_string_with_int(self):
     self.assertFalse(IO.is_string(2))
Exemple #3
0
 def test_is_string_with_list(self):
     self.assertFalse(IO.is_string(['A string']))
Exemple #4
0
 def test_is_string_with_string(self):
     self.assertTrue(IO.is_string('a small string'))