def test_store_entryid(server, user): store = server.store(entryid=user.store.entryid) assert isinstance(store, Store) assert user.store.entryid == store.entryid with pytest.raises(NotFoundError) as excinfo: server.store(entryid='DEADBEEF') assert 'no store with' in str(excinfo)
def test_store_guid(server, user): store = server.store(user.store.guid) assert isinstance(store, Store) assert user.store.guid == store.guid with pytest.raises(NotFoundError) as excinfo: server.store(32*'A') assert 'no such store' in str(excinfo)
def test_publicstore(server): public_store = server.store('public') assert public_store == server.public_store assert isinstance(public_store, Store) assert public_store.public
def test_store_guid_invalid(server, arg): with pytest.raises(Error) as excinfo: server.store(arg) assert 'invalid store id' in str(excinfo)