示例#1
0
def test_read_nonexistent(testdir):
    td = CoreTestmonData(testdir.tmpdir.strpath, 'V2')
    assert td._fetch_attribute('1') == None
示例#2
0
def test_read_nonexistent(testdir):
    td = CoreTestmonData(testdir.tmpdir.strpath, 'V2')
    assert td._fetch_attribute('1') == None
示例#3
0
def test_write_read_data(testdir):
    td = CoreTestmonData(testdir.tmpdir.strpath, 'V1')
    with td.connection:
        td._write_attribute('1', {'a': 1})
    td2 = CoreTestmonData(testdir.tmpdir.strpath, 'V1')
    assert td2._fetch_attribute('1') == {'a': 1}
示例#4
0
def test_write_read_data(testdir):
    td = CoreTestmonData(testdir.tmpdir.strpath, 'V1')
    with td.connection:
        td._write_attribute('1', {'a': 1})
    td2 = CoreTestmonData(testdir.tmpdir.strpath, 'V1')
    assert td2._fetch_attribute('1') == {'a': 1}