

def test_open(self):
    cluster = _Cluster()
    connection = self._makeOne(autoconnect=False, cluster=cluster)
    self.assertEqual(cluster._client.start_calls, 0)
    connection.open()
    self.assertEqual(cluster._client.start_calls, 1)
    self.assertEqual(cluster._client.stop_calls, 0)

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/happybase/test_connection.py TestConnection.test_open/original