(self)
| 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 |