MCPcopy
hub / github.com/scrapy/scrapy / assertCsvEqual

Method assertCsvEqual

tests/test_exporters.py:275–282  ·  view source on GitHub ↗
(self, first, second, msg=None)

Source from the content-addressed store, hash-verified

273 return CsvItemExporter(self.output, **kwargs)
274
275 def assertCsvEqual(self, first, second, msg=None):
276 def split_csv(csv):
277 return [
278 sorted(re.split(r"(,|\s+)", line))
279 for line in to_unicode(csv).splitlines(True)
280 ]
281
282 assert split_csv(first) == split_csv(second), msg
283
284 def _check_output(self):
285 self.output.seek(0)

Callers 3

_check_outputMethod · 0.95
assertExportResultMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected