def METHOD_NAME(self, client, requested_tasks, matching, expected):
    url = f"{self.url}?"
    for key, value in matching.items():
        if isinstance(value, list):
            for lvalue in value:
                url += f"matching_{key}={lvalue}&"
        else:
            url += f"matching_{key}={value}&"
    headers = {"Content-Type": "application/json"}
    response = client.get(url, headers=headers)
    assert response.status_code == 200
    data = json.loads(response.data)
    items = data["items"]
    assert len(items) == expected