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

Method compare_dialect_123

Lib/test/test_csv.py:657–664  ·  view source on GitHub ↗
(self, expected, *writeargs, **kwwriteargs)

Source from the content-addressed store, hash-verified

655 self.assertEqual(next(reader), ["c1ccccc1", "benzene"])
656
657 def compare_dialect_123(self, expected, *writeargs, **kwwriteargs):
658
659 with TemporaryFile("w+", newline='', encoding="utf-8") as fileobj:
660
661 writer = csv.writer(fileobj, *writeargs, **kwwriteargs)
662 writer.writerow([1,2,3])
663 fileobj.seek(0)
664 self.assertEqual(fileobj.read(), expected)
665
666 @unittest.expectedFailure # TODO: RUSTPYTHON
667 def test_dialect_apply(self):

Callers 1

test_dialect_applyMethod · 0.95

Calls 6

TemporaryFileFunction · 0.90
writerMethod · 0.45
writerowMethod · 0.45
seekMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected