MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_write_quoting

Method test_write_quoting

Lib/test/test_csv.py:217–232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

215
216 @unittest.expectedFailure # TODO: RUSTPYTHON
217 def test_write_quoting(self):
218 self._write_test(['a',1,'p,q'], 'a,1,"p,q"')
219 self._write_error_test(csv.Error, ['a',1,'p,q'],
220 quoting = csv.QUOTE_NONE)
221 self._write_test(['a',1,'p,q'], 'a,1,"p,q"',
222 quoting = csv.QUOTE_MINIMAL)
223 self._write_test(['a',1,'p,q'], '"a",1,"p,q"',
224 quoting = csv.QUOTE_NONNUMERIC)
225 self._write_test(['a',1,'p,q'], '"a","1","p,q"',
226 quoting = csv.QUOTE_ALL)
227 self._write_test(['a\nb',1], '"a\nb","1"',
228 quoting = csv.QUOTE_ALL)
229 self._write_test(['a','',None,1], '"a","",,1',
230 quoting = csv.QUOTE_STRINGS)
231 self._write_test(['a','',None,1], '"a","",,"1"',
232 quoting = csv.QUOTE_NOTNULL)
233
234 @unittest.expectedFailure # TODO: RUSTPYTHON
235 def test_write_escape(self):

Callers

nothing calls this directly

Calls 2

_write_testMethod · 0.95
_write_error_testMethod · 0.95

Tested by

no test coverage detected