def METHOD_NAME(self):
    response = self.client.get(
        "/bad_request", headers={"Accept": "application/json"}
    )
    self.assert_400(response)
    self.assertEqual("application/json", response.content_type)
    self.assertIsNotNone(response.json)
    self.assertIn("error", list(response.json.keys()))
    json_msg = response.json["error"]
    expected_msg = "<p>%s</p>" % ERROR_MSG
    self.assertEqual(expected_msg, json_msg)