示例#1
0
def setUp():
    '''
    setup
    '''
    common.drop_table("single_row_txn_test")

    cmd = "./teracli create 'single_row_txn_test<txn=on>{lg0{cf0}}'"
    common.exe_and_check_res(cmd)
def setUp():
    #clear env
    common.drop_table("crud_table")

    #set env
    cmd = "./teracli create 'crud_table{lg0{cf0}}'"
    common.exe_and_check_res(cmd)
    global table
    try:
        client = Client("", "pysdk")
        table = client.OpenTable("crud_table")
    except TeraSdkException as e:
        print(e.reason)
        nose.tools.assert_true(False)
示例#3
0
def setUp():
    #clear env
    common.drop_table("crud_table")

    #set env
    cmd = "./teracli create 'crud_table{lg0{cf0}}'"
    common.exe_and_check_res(cmd)
    global table
    try:
        client = Client("", "pysdk")
        table = client.OpenTable("crud_table")
    except TeraSdkException as e:
        print(e.reason)
        nose.tools.assert_true(False)
示例#4
0
def tearDown():
    # clear env
    common.drop_table("single_row_txn_test")
    pass
示例#5
0
文件: test_filter.py 项目: zmyer/tera
def setUp():
    common.drop_table("filter_table")
    common.runcmd("./teracli create 'filter_table{lg0{cf0,cf1}}'")
示例#6
0
def setUp():
    common.drop_table("filter_table")
    common.runcmd("./teracli create 'filter_table{lg0{cf0,cf1}}'")