def test_read_nonexistent(testdir): td = CoreTestmonData(testdir.tmpdir.strpath, 'V2') assert td._fetch_attribute('1') == None
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}