def test_object_in_array_fail(self): with self.assertRaises(WooperAssertionError): expect.expect_json_not_contains( response, {"baz": "spam", "second": "item"}, path="list" )
def test_object_in_object_pass(self): expect.expect_json_not_contains( response, { "list": [{"baz": "spam", "second": "item"}, 1, "qwe", ["a", "c"]] } )
def test_object_in_object_fail(self): with self.assertRaises(WooperAssertionError): expect.expect_json_not_contains( response, { "list": [{"baz": "spam", "second": "item"}, 1, "qwe", ["a", "b"]] } )
def step_impl_then_get_nofield(context, field): assert_200(context.response) expect_json_not_contains(context.response, field)
def test_object_in_array_pass(self): expect.expect_json_not_contains( response, {"baz": "spa", "second": "item"}, path="list" )