MCPcopy Index your code
hub / github.com/python/cpython / readerAssertEqual

Method readerAssertEqual

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

Source from the content-addressed store, hash-verified

688
689class TestCsvBase(unittest.TestCase):
690 def readerAssertEqual(self, input, expected_result):
691 with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj:
692 fileobj.write(input)
693 fileobj.seek(0)
694 reader = csv.reader(fileobj, dialect = self.dialect)
695 fields = list(reader)
696 self.assertEqual(fields, expected_result)
697
698 def writerAssertEqual(self, input, expected_result):
699 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