summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authoramatellanes <dev.amatellanes@gmail.com>2014-04-17 11:44:30 +0200
committerLoic Bistuer <loic.bistuer@gmail.com>2014-04-18 15:11:08 +0700
commit8394e570baf91cff5e5349c0ef06c4f06f06d0b1 (patch)
treee48a289964cc5f275079aedf21a9daa479e155b8 /docs/topics/testing
parent9bc377d7d0c33697326172513aac6e8dad58fe96 (diff)
Fixed #22465 -- New assertion assertJSONNotEqual
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/tools.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 29a94b713c..188da1bbaf 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -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``.