| 355 | self.assertEqual(dict_expect, result) |
| 356 | |
| 357 | def test_to_csv(self): |
| 358 | tmp_path = "functional/test/data/tmp/output.txt" |
| 359 | elements = [[1, 2, 3], [4, 5, 6], ["a", "b", "c"]] |
| 360 | expect = [["1", "2", "3"], ["4", "5", "6"], ["a", "b", "c"]] |
| 361 | sequence = self.seq(elements) |
| 362 | sequence.to_csv(tmp_path) |
| 363 | result = self.seq.csv(tmp_path).to_list() |
| 364 | self.assertEqual(expect, result) |
| 365 | |
| 366 | @unittest.skipUnless(system().startswith("Win"), "Skip CSV test if not on Windows") |
| 367 | def test_to_csv_win(self): |