def test_load_database(request_database, link_update_req): request_database.add_request(link_update_req) request_database.save() rd = RequestDatabase.load(fn=request_database.db_fn) assert rd assert rd.req_fn == request_database.req_fn assert rd._req_queue == request_database._req_queue assert rd._resp_queue == request_database._resp_queue
def test_load_database_creator(request_database): rd = RequestDatabase.load( fn=os.path.join(TMP_DIR, "azgabash.shelve") ) assert rd