def test_iterable_with_generator(self): self.assertTrue(iterable(generator_method()))
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))