MCPcopy
hub / github.com/django/django / test_simple_equal_raise

Method test_simple_equal_raise

tests/test_utils/tests.py:1165–1169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1163 self.assertJSONEqual(json1, json2)
1164
1165 def test_simple_equal_raise(self):
1166 json1 = '{"attr1": "foo", "attr2":"baz"}'
1167 json2 = '{"attr2":"baz"}'
1168 with self.assertRaises(AssertionError):
1169 self.assertJSONEqual(json1, json2)
1170
1171 def test_equal_parsing_errors(self):
1172 invalid_json = '{"attr1": "foo, "attr2":"baz"}'

Callers

nothing calls this directly

Calls 1

assertJSONEqualMethod · 0.80

Tested by

no test coverage detected