def __call__(self, *args, **kwargs):
        self._factory.method_calls.append((self._name, args, kwargs))
        curr_result, self._factory.results = (self._factory.results[0],
                                              self._factory.results[1:])
        return curr_result
Sync method meant to mock a gRPC stub request.
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/_testing.py/_MethodMock.__call__