MCPcopy
hub / github.com/scrapy/scrapy / _check_output

Method _check_output

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

Source from the content-addressed store, hash-verified

414 self.assertXmlEquivalent(fp.getvalue(), expected_value)
415
416 def _check_output(self):
417 expected_value = (
418 b'<?xml version="1.0" encoding="utf-8"?>\n'
419 b"<items><item><age>22</age><name>John\xc2\xa3</name></item></items>"
420 )
421 self.assertXmlEquivalent(self.output.getvalue(), expected_value)
422
423 def test_multivalued_fields(self):
424 self.assertExportResult(

Callers

nothing calls this directly

Calls 1

assertXmlEquivalentMethod · 0.95

Tested by

no test coverage detected