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