From 83523f704d889691884048d0d2de0386f4514a8a Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Thu, 15 Feb 2024 12:44:08 -0500 Subject: [PATCH] test(csvformat): Add --out-asv test, #1232 --- tests/test_utilities/test_csvformat.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_utilities/test_csvformat.py b/tests/test_utilities/test_csvformat.py index 5e2ebf5e2..7123f2c23 100644 --- a/tests/test_utilities/test_csvformat.py +++ b/tests/test_utilities/test_csvformat.py @@ -47,12 +47,17 @@ def test_delimiter(self): '1|2|3', ]) - def test_tab_delimiter(self): + def test_tabs(self): self.assertLines(['-T', 'examples/dummy.csv'], [ 'a\tb\tc', '1\t2\t3', ]) + def test_asv(self): + self.assertLines(['-A', 'examples/dummy.csv'], [ + 'a\x1fb\x1fc\x1e1\x1f2\x1f3\x1e', + ], newline_at_eof=False) + def test_quotechar(self): input_file = io.BytesIO(b'a,b,c\n1*2,3,4\n')