MCPcopy
hub / github.com/scrapy/scrapy / test_header_export_all

Method test_header_export_all

tests/test_exporters.py:299–304  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 self.assertCsvEqual(fp.getvalue(), expected)
298
299 def test_header_export_all(self):
300 self.assertExportResult(
301 item=self.i,
302 fields_to_export=ItemAdapter(self.i).field_names(),
303 expected=b"age,name\r\n22,John\xc2\xa3\r\n",
304 )
305
306 def test_header_export_all_dict(self):
307 self.assertExportResult(

Callers

nothing calls this directly

Calls 1

assertExportResultMethod · 0.95

Tested by

no test coverage detected