Exemple #1
0
 def test_frozenset(self):
     self.assertTrue(isiterable(frozenset()))
Exemple #2
0
 def test_false(self):
     self.assertFalse(isiterable(int))
Exemple #3
0
 def test_dict(self):
     self.assertTrue(isiterable({}))
Exemple #4
0
 def test_set(self):
     self.assertTrue(isiterable(set()))
Exemple #5
0
 def test_tuple(self):
     self.assertTrue(isiterable(()))
Exemple #6
0
 def test_list(self):
     self.assertTrue(isiterable([]))
Exemple #7
0
 def test_unicode(self):
     self.assertFalse(isiterable("unicode"))
Exemple #8
0
 def test_str(self):
     self.assertFalse(isiterable("str"))
Exemple #9
0
 def test_str(self):
     self.assertFalse(isiterable('str'))