Wednesday, April 30, 2014

assertXMLEqual behaviour

Hi,

I am using django 1.6 but I can't find any information on the bugtracker as to whether this has changed but is this intentional behaviour of assertXMLEqual:

# this passes
self.assertXMLEqual(
    "<test><test>Value</test></test>",
    """<test><test>Value</test></test>""",
)

# this fails
self.assertXMLEqual(
    "<test><test>Value</test></test>",
    """<test>
        <test>Value</test>
    </test>""",
)

Thanks,


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b00120b0-56bd-4deb-8f49-08614b0afdcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment