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

Method readerAssertEqual

Lib/test/test_csv.py:709–715  ·  view source on GitHub ↗
(self, input, expected_result)

Source from the content-addressed store, hash-verified

707
708class TestCsvBase(unittest.TestCase):
709 def readerAssertEqual(self, input, expected_result):
710 with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj:
711 fileobj.write(input)
712 fileobj.seek(0)
713 reader = csv.reader(fileobj, dialect = self.dialect)
714 fields = list(reader)
715 self.assertEqual(fields, expected_result)
716
717 def writerAssertEqual(self, input, expected_result):
718 with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj:

Callers 15

test_singleMethod · 0.80
test_simpleMethod · 0.80
test_blanklineMethod · 0.80
test_empty_fieldsMethod · 0.80
test_singlequotedMethod · 0.80
test_quoted_quotesMethod · 0.80
test_inline_quoteMethod · 0.80
test_inline_quotesMethod · 0.80
test_quotes_and_moreMethod · 0.80

Calls 6

TemporaryFileFunction · 0.90
listClass · 0.85
writeMethod · 0.45
seekMethod · 0.45
readerMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected