Exemplo n.º 1
0
 def test_iter(self):
     sc = StreamCSVContent(None, iter([1, 2, 3]))
     self.assertTrue(isinstance(iter(sc), StreamCSVContent))
Exemplo n.º 2
0
 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)