MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / test_option_update

Method test_option_update

test/mitmproxy/tools/web/test_app.py:409–412  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

407 assert isinstance(j["anticache"], dict)
408
409 def test_option_update(self):
410 assert self.put_json("/options", {"anticache": True}).code == 200
411 assert self.put_json("/options", {"wtf": True}).code == 400
412 assert self.put_json("/options", {"anticache": "foo"}).code == 400
413
414 def test_option_save(self):
415 assert self.fetch("/options/save", method="POST").code == 200

Callers

nothing calls this directly

Calls 1

put_jsonMethod · 0.95

Tested by

no test coverage detected