def test_iter(self): sc = StreamCSVContent(None, iter([1, 2, 3])) self.assertTrue(isinstance(iter(sc), StreamCSVContent))
def test_next_header(self): sc = StreamCSVContent("header", iter([1, 2, 3])) content = [item for item in sc] self.assertListEqual(["header", 1, 2, 3], content)