Author: russellm
Date: 2008-07-20 03:47:10 -0500 (Sun, 20 Jul 2008)
New Revision: 8005

Modified:
   django/trunk/tests/regressiontests/test_utils/tests.py
Log:
Made the test case for doctest comparison of XML fragments a little more 
rigorous. Refs #7441.

Modified: django/trunk/tests/regressiontests/test_utils/tests.py
===================================================================
--- django/trunk/tests/regressiontests/test_utils/tests.py      2008-07-20 
06:32:54 UTC (rev 8004)
+++ django/trunk/tests/regressiontests/test_utils/tests.py      2008-07-20 
08:47:10 UTC (rev 8005)
@@ -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>'
 
 """
\ No newline at end of file


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to