MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / test_csv

Method test_csv

functional/test/test_streams.py:67–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self.assertListEqual(data, self.seq.range(-5, 8, 2).to_list())
66
67 def test_csv(self):
68 result = self.seq.csv("functional/test/data/test.csv").to_list()
69 expect = [["1", "2", "3", "4"], ["a", "b", "c", "d"]]
70 self.assertEqual(expect, result)
71 with open("functional/test/data/test.csv", "r") as csv_file:
72 self.assertEqual(expect, self.seq.csv(csv_file).to_list())
73 with self.assertRaises(ValueError):
74 self.seq.csv(1)
75
76 def test_csv_dict_reader(self):
77 result = self.seq.csv_dict_reader(

Callers

nothing calls this directly

Calls 2

to_listMethod · 0.80
csvMethod · 0.80

Tested by

no test coverage detected