

def test_table_factory(self):
    from gcloud.bigtable.happybase.table import Table
    cluster = _Cluster()
    connection = self._makeOne(autoconnect=False, cluster=cluster)
    name = 'table-name'
    table = connection.table(name)
    self.assertTrue(isinstance(table, Table))
    self.assertEqual(table.name, table)
    self.assertEqual(table.connection, connection)

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/happybase/test_connection.py TestConnection.test_table_factory/VarMisuse@75/92 `name`->`table`