(self)
| 1088 | self.assertEqual(fileobj.read(), expected) |
| 1089 | |
| 1090 | def test_char_write(self): |
| 1091 | import array, string |
| 1092 | a = array.array('w', string.ascii_letters) |
| 1093 | |
| 1094 | with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj: |
| 1095 | writer = csv.writer(fileobj, dialect="excel") |
| 1096 | writer.writerow(a) |
| 1097 | expected = ",".join(a)+"\r\n" |
| 1098 | fileobj.seek(0) |
| 1099 | self.assertEqual(fileobj.read(), expected) |
| 1100 | |
| 1101 | class TestDialectValidity(unittest.TestCase): |
| 1102 | def test_quoting(self): |
nothing calls this directly
no test coverage detected