Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made the test case for doctest comparison of XML fragments a little m…

…ore rigorous. Refs #7441.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6db9fd0116406fcd29ae63efb344f76b73c73ec8 1 parent b58de15
@freakboy3742 freakboy3742 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/regressiontests/test_utils/tests.py
View
8 tests/regressiontests/test_utils/tests.py
@@ -32,10 +32,10 @@
>>> def produce_xml_fragment():
... stream = StringIO()
... xml = SimplerXMLGenerator(stream, encoding='utf-8')
-... xml.startElement("foo", {"aaa" : "1.0", "bbb": "2.0"})
+... xml.startElement("foo", {"aaa": "1.0", "bbb": "2.0"})
... xml.characters("Hello")
... xml.endElement("foo")
-... xml.startElement("bar", {})
+... xml.startElement("bar", {"ccc": "3.0", "ddd": "4.0"})
... xml.endElement("bar")
... return stream.getvalue()
@@ -64,9 +64,9 @@
'<?xml version="1.0" encoding="UTF-8"?>\n<foo bbb="2.0" aaa="1.0"><bar ccc="3.0">Hello</bar><whiz>Goodbye</whiz></foo>'
>>> produce_xml_fragment()
-'<foo aaa="1.0" bbb="2.0">Hello</foo><bar></bar>'
+'<foo aaa="1.0" bbb="2.0">Hello</foo><bar ccc="3.0" ddd="4.0"></bar>'
>>> produce_xml_fragment()
-'<foo bbb="2.0" aaa="1.0">Hello</foo><bar></bar>'
+'<foo bbb="2.0" aaa="1.0">Hello</foo><bar ddd="4.0" ccc="3.0"></bar>'
"""

0 comments on commit 6db9fd0

Please sign in to comment.
Something went wrong with that request. Please try again.