def METHOD_NAME(self):
    router = Router(dispatcher=handler_dispatcher())
    @resource("/_localstack/health")
    class TestResource:
        def on_post(self, request):
            return "POST/OK"
    router.add(TestResource())
    with pytest.raises(MethodNotAllowed):
        assert router.dispatch(Request("GET", "/_localstack/health"))
    assert router.dispatch(Request("POST", "/_localstack/health")).get_data(True) == "POST/OK"