Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Russell Keith-Magee authored July 20, 2008

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  tests/regressiontests/test_utils/tests.py
8  tests/regressiontests/test_utils/tests.py
@@ -32,10 +32,10 @@
32 32
 >>> def produce_xml_fragment():
33 33
 ...     stream = StringIO()
34 34
 ...     xml = SimplerXMLGenerator(stream, encoding='utf-8')
35  
-...     xml.startElement("foo", {"aaa" : "1.0", "bbb": "2.0"})
  35
+...     xml.startElement("foo", {"aaa": "1.0", "bbb": "2.0"})
36 36
 ...     xml.characters("Hello")
37 37
 ...     xml.endElement("foo")
38  
-...     xml.startElement("bar", {})
  38
+...     xml.startElement("bar", {"ccc": "3.0", "ddd": "4.0"})
39 39
 ...     xml.endElement("bar")
40 40
 ...     return stream.getvalue()
41 41
 
@@ -64,9 +64,9 @@
64 64
 '<?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>'
65 65
 
66 66
 >>> produce_xml_fragment()
67  
-'<foo aaa="1.0" bbb="2.0">Hello</foo><bar></bar>'
  67
+'<foo aaa="1.0" bbb="2.0">Hello</foo><bar ccc="3.0" ddd="4.0"></bar>'
68 68
 
69 69
 >>> produce_xml_fragment()
70  
-'<foo bbb="2.0" aaa="1.0">Hello</foo><bar></bar>'
  70
+'<foo bbb="2.0" aaa="1.0">Hello</foo><bar ddd="4.0" ccc="3.0"></bar>'
71 71
 
72 72
 """

0 notes on commit 6db9fd0

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