def test_pull_broken(): engine = FaultyEngine() actor = ActorBase(engine, [], {}) with pytest.raises(StorageError): list(actor.pull('foo'))
def test_pull(): engine = LocalMemoryEngine() actor = ActorBase(engine, [], {}) actor.push('foo', 1) assert list(actor.pull('foo')) == [1]