예제 #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}}'")