예제 #1
0
def test_ModelStorageEngine_nocaching(project_storage):
    mse = ModelStorageEngine(project_storage)
    mse.write("testobject", "myhash")
    assert mse.exists("myhash")
    assert mse.load("myhash") == "testobject"
    assert "myhash" not in mse.cache
예제 #2
0
def test_ModelStorageEngine_nocaching(project_storage):
    mse = ModelStorageEngine(project_storage)
    mse.write('testobject', 'myhash')
    assert mse.exists('myhash')
    assert mse.load('myhash') == 'testobject'
    assert 'myhash' not in mse.cache