Hi,

I'd like to test a query and the data returned by that query is a list
containing a list of objects. For example:
[[<MyModel: object_1>, <MyModel: object_2>, ..., <MyModel: object_n>]]

If I try testing using unittests I get the following error:
AssertionError: [[]] != [[]]
though to me the expected output and the one I get look identical.

If I try with doc test then I get the problem when the output span
multiple lines: even though the objects returned are the right ones,
the expected string and the one I get are different because of
newlines and this make the test fail.

Is there any solution to this problem (with particular regard to
unittest, which I would prefer to use)?

thanks and regards
Francesco


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

Reply via email to