MCPcopy
hub / github.com/django/django / test_simple_not_equal_raise

Method test_simple_not_equal_raise

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

Source from the content-addressed store, hash-verified

1182 self.assertJSONNotEqual(json1, json2)
1183
1184 def test_simple_not_equal_raise(self):
1185 json1 = '{"attr1": "foo", "attr2":"baz"}'
1186 json2 = '{"attr1": "foo", "attr2":"baz"}'
1187 with self.assertRaises(AssertionError):
1188 self.assertJSONNotEqual(json1, json2)
1189
1190 def test_not_equal_parsing_errors(self):
1191 invalid_json = '{"attr1": "foo, "attr2":"baz"}'

Callers

nothing calls this directly

Calls 1

assertJSONNotEqualMethod · 0.80

Tested by

no test coverage detected