예제 #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'))