def is_connected(self):
        return (self.__connection is not None) and \
               (self.__connection.is_connected())
Sync method meant to mock a gRPC stub request.
dataset/ETHPy150Open thefab/tornadis/tornadis/client.py/Client.is_connected--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/_testing.py/_MethodMock.__call__