Exemple #1
0
 def test_iterable_with_generator(self):
     self.assertTrue(iterable(generator_method()))
Exemple #2
0
 def test_iterable_with_built_in_type_sequence(self):
     self.assertTrue(iterable(str))
     self.assertTrue(iterable(tuple))
     self.assertTrue(iterable(list))
     self.assertTrue(iterable(range))
     self.assertTrue(iterable(dict))