Fixed #22465 -- New assertion assertJSONNotEqual

This commit is contained in:
amatellanes 2014-04-17 11:44:30 +02:00 committed by Loic Bistuer
parent 9bc377d7d0
commit 8394e570ba
4 changed files with 77 additions and 0 deletions

View file

@ -1458,6 +1458,13 @@ your test suite.
Output in case of error can be customized with the ``msg`` argument.
.. method:: SimpleTestCase.assertJSONNotEqual(raw, expected_data, msg=None)
Asserts that the JSON fragments ``raw`` and ``expected_data`` are *not* equal.
See :meth:`~SimpleTestCase.assertJSONEqual` for further details.
Output in case of error can be customized with the ``msg`` argument.
.. method:: TransactionTestCase.assertQuerysetEqual(qs, values, transform=repr, ordered=True, msg=None)
Asserts that a queryset ``qs`` returns a particular list of values ``values``.