Ejemplo n.º 1
0
def test_pop_broken():
    engine = FaultyEngine()
    actor = ActorBase(engine, [], {})

    with pytest.raises(StorageError):
        actor.pop('foo')
Ejemplo n.º 2
0
def test_pop():
    engine = LocalMemoryEngine()
    actor = ActorBase(engine, [], {})
    actor.push('foo', 1)
    assert actor.pop('foo') == 1