def test_copy_static_table(self):
        self.db.execute(CREATE_STMT)
        for row in TABLE_DATA:
            self.db.execute("INSERT INTO t1 VALUES (%s, %s)", row)
        cfg = {'datacopy': {'schema public': ['t1']}}
        dbmap = self.to_map([], config=cfg)
        assert dbmap['schema public']['table t1'] == {
            'columns': [{'c1': {'type': 'integer'}}, {'c2': {'type': 'text'}}]}
        recs = []
        with open(os.path.join(self.cfg['files']['data_path'],
                               "schema.public", FILE_PATH)) as f:
            for line in f:
                (c1, c2) = line.split(',')
                recs.append((int(c1), c2.rstrip()))
        assert recs == TABLE_DATA
@param path: a PathFragment that the client wishes to get a list of.
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_static.py/StaticTableToMapTestCase.test_copy_static_table--crossover with--dataset/ETHPy150Open twisted/vertex/vertex/ivertex.py/IFileTransfer.listChildren