def test_delete_broken(): engine = FaultyEngine() actor = ActorBase(engine, [], {}) with pytest.raises(StorageError): actor.put('foo', True) actor.delete('foo')
def test_delete(): engine = LocalMemoryEngine() actor = ActorBase(engine, [], {}) actor.put('foo', True) actor.delete('foo') assert actor.get('foo') is None