MCPcopy
hub / github.com/django/django / test_processing_instruction

Method test_processing_instruction

tests/test_utils/tests.py:1279–1292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1277 self.assertXMLEqual(xml1, xml2)
1278
1279 def test_processing_instruction(self):
1280 xml1 = (
1281 '<?xml version="1.0"?>'
1282 '<?xml-model href="http://www.example1.com"?><root />'
1283 )
1284 xml2 = (
1285 '<?xml version="1.0"?>'
1286 '<?xml-model href="http://www.example2.com"?><root />'
1287 )
1288 self.assertXMLEqual(xml1, xml2)
1289 self.assertXMLEqual(
1290 '<?xml-stylesheet href="style1.xslt" type="text/xsl"?><root />',
1291 '<?xml-stylesheet href="style2.xslt" type="text/xsl"?><root />',
1292 )
1293
1294
1295class SkippingExtraTests(TestCase):

Callers

nothing calls this directly

Calls 1

assertXMLEqualMethod · 0.80

Tested by

no test coverage detected