def test_pop_broken(): engine = FaultyEngine() actor = ActorBase(engine, [], {}) with pytest.raises(StorageError): actor.pop('foo')
def test_pop(): engine = LocalMemoryEngine() actor = ActorBase(engine, [], {}) actor.push('foo', 1) assert actor.pop('foo') == 1