def METHOD_NAME(self, method, args, req_kind, req_url,
                           body=b"", extra_headers={}, expected_query_args={}):
    """
    Test that calling a given `method` results in the client making a
    request to the given `req_url` (with HTTP verb `req_kind`).
    """
    self.assertThat(
        getattr(self.client, method.replace("-", "_"))(*args),
        succeeded(Always()),
    )
    headers = {
        b'Accept-Encoding': [b'gzip'],
        b'Authorization': [b'Bearer fake token'],
        b'Connection': [b'close'],
        b'Host': [b'invalid.'],
    }
    headers.update(extra_headers)
    self.assertThat(
        self.api_calls,
        Equals([
            (req_kind,
             req_url,
             expected_query_args,
             headers,
             body,
            ),
        ])
    )