def METHOD_NAME(query: str, expected: bool) -> None:
    mock = MagicMock()
    @get("/")
    def handler(param: bool) -> None:
        mock(param)
    with create_test_client(route_handlers=[handler]) as client:
        response = client.get(f"/?param={query}")
        assert response.status_code == HTTP_200_OK, response.json()
        mock.assert_called_once_with(expected)