(self, input, expected_result)
| 707 | |
| 708 | class TestCsvBase(unittest.TestCase): |
| 709 | def readerAssertEqual(self, input, expected_result): |
| 710 | with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj: |
| 711 | fileobj.write(input) |
| 712 | fileobj.seek(0) |
| 713 | reader = csv.reader(fileobj, dialect = self.dialect) |
| 714 | fields = list(reader) |
| 715 | self.assertEqual(fields, expected_result) |
| 716 | |
| 717 | def writerAssertEqual(self, input, expected_result): |
| 718 | with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj: |
no test coverage detected