MCPcopy
hub / github.com/FlareSolverr/FlareSolverr / test_wrong_endpoint

Method test_wrong_endpoint

src/tests.py:35–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 app.get('/')
34
35 def test_wrong_endpoint(self):
36 res = self.app.get('/wrong', status=404)
37 self.assertEqual(res.status_code, 404)
38
39 body = res.json
40 self.assertEqual("Not found: '/wrong'", body['error'])
41 self.assertEqual(404, body['status_code'])
42
43 def test_index_endpoint(self):
44 res = self.app.get('/')

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected