Documented csv import/export options from standard lib (#431)

This commit is contained in:
Claude Paroz
2019-11-14 17:08:51 +01:00
committed by Hugo van Kemenade
parent 57a535f577
commit ce7d887adc
3 changed files with 19 additions and 1 deletions
+6
View File
@@ -800,6 +800,12 @@ class CSVTests(BaseTestCase):
self.assertEqual(csv, self.founders.csv)
def test_csv_export_options(self):
"""Exporting support csv.writer() parameters."""
data.append(('1. a', '2. b', '3. c'))
result = data.export('csv', delimiter=' ', quotechar='|')
self.assertEqual(result, '|1. a| |2. b| |3. c|\r\n')
def test_csv_stream_export(self):
"""Verify exporting dataset object as CSV from file object."""