コード例 #1
0
ファイル: test_table.py プロジェクト: StingraySoftware/dave
def test_clone(s, c, v, e):
    table1 = Table(s)
    table1.add_columns([c])
    table1.columns[c].add_value(v, e)
    schema1 = table1.get_schema()
    table2 = table1.clone()
    schema2 = table2.get_schema()
    assert schema1 == schema2
コード例 #2
0
ファイル: test_table.py プロジェクト: pep8speaks/dave
def test_clone(s, c, v):
    table1 = Table(s)
    table1.add_columns([c])
    table1.columns[c].add_value(v)
    schema1 = table1.get_schema()
    table2 = table1.clone()
    schema2 = table2.get_schema()
    assert schema1 == schema2