Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias identifier ImportFrom alias FunctionDef arguments args defaults body Global identifier Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr keyword Str attr decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call NameLoad keyword Num Assign SubscriptStore NameLoad Index Str ListLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad Call NameLoad NameLoad Slice Num Return BinOpSub NameLoad Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index BinOpFloorDiv Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareLt SubscriptLoad NameLoad Index Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareGtE SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str Str keyword ListLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str Str keyword ListLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str Str keyword ListLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str Str keyword ListLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad Slice Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Num Num Num For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareGtE NameLoad NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad keyword Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Dict Str Dict Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Dict Str Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareGtE Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Index Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad keyword ListLoad Str Str Index Num Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Index Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareGtE Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr CompareLtE Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Num keyword ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad keyword ListLoad Call AttributeLoad NameLoad attr Num keyword ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass decorator_list
N/A N/A Tests for db backends

Authors:

* Min RK
 __future__ division N/A logging N/A os N/A tempfile N/A time datetime datetime timedelta unittest TestCase ipyparallel error ipyparallel.controller.dictdb DictDB ipyparallel.controller.sqlitedb SQLiteDB ipyparallel.controller.hub init_record empty_record IPython.testing decorators dec jupyter_client.session Session setup N/A N/A N/A N/A N/A temp_db N/A temp_db N/A N/A N/A tempfile NamedTemporaryFile suffix .db name N/A TaskDBTest N/A N/A setUp N/A N/A self N/A N/A N/A N/A self session N/A Session N/A N/A self db N/A N/A self create_db N/A N/A N/A self load_records 16 N/A create_db N/A N/A self N/A N/A N/A NotImplementedError N/A load_records N/A N/A self n buffer_size N/A 1 100 N/A N/A load n records for testing N/A N/A N/A time sleep 0.1 N/A msg_ids N/A N/A i N/A range n N/A N/A msg N/A N/A N/A self session msg apply_request content N/A dict a 5 N/A N/A msg N/A buffers N/A N/A N/A os urandom buffer_size N/A rec N/A init_record msg N/A msg_id N/A N/A msg N/A header N/A msg_id N/A N/A N/A msg_ids append msg_id N/A N/A N/A N/A self db add_record msg_id rec N/A msg_ids N/A test_add_record N/A N/A self N/A N/A N/A before N/A N/A N/A self db get_history N/A N/A N/A self load_records 5 N/A after N/A N/A N/A self db get_history N/A N/A N/A self assertEqual N/A len after N/A N/A len before 5 N/A N/A N/A self assertEqual N/A after N/A -5 before N/A test_drop_record N/A N/A self N/A N/A N/A msg_id N/A N/A N/A self load_records N/A -1 N/A rec N/A N/A N/A self db get_record msg_id N/A N/A N/A N/A self db drop_record msg_id N/A N/A N/A self assertRaises KeyError N/A N/A self db get_record msg_id N/A _round_to_millisecond N/A N/A self dt N/A N/A N/A necessary because mongodb rounds microseconds N/A micro N/A dt microsecond N/A extra N/A int N/A N/A str micro N/A -3 N/A N/A dt N/A timedelta microseconds extra N/A test_update_record N/A N/A self N/A N/A N/A now N/A N/A self _round_to_millisecond N/A N/A datetime now N/A msg_id N/A N/A N/A N/A self db get_history N/A -1 N/A rec1 N/A N/A N/A self db get_record msg_id N/A data N/A stdout completed hello there now N/A N/A N/A N/A self db update_record msg_id data N/A rec2 N/A N/A N/A self db get_record msg_id N/A N/A N/A self assertEqual N/A rec2 N/A stdout hello there N/A N/A N/A self assertEqual N/A rec2 N/A completed now N/A N/A N/A rec1 update data N/A N/A N/A self assertEqual rec1 rec2 N/A test_find_records_dt N/A N/A self N/A N/A N/A test finding records by date N/A hist N/A N/A N/A self db get_history N/A middle N/A N/A N/A self db get_record N/A hist N/A N/A N/A len hist 2 N/A tic N/A middle N/A submitted N/A before N/A N/A N/A self db find_records N/A submitted N/A $lt tic N/A after N/A N/A N/A self db find_records N/A submitted N/A $gte tic N/A N/A N/A self assertEqual N/A N/A len before N/A len after N/A len hist N/A b before N/A N/A N/A N/A self assertTrue N/A N/A b N/A submitted tic N/A a after N/A N/A N/A N/A self assertTrue N/A N/A a N/A submitted tic N/A same N/A N/A N/A self db find_records N/A submitted tic N/A s same N/A N/A N/A N/A self assertTrue N/A N/A s N/A submitted tic N/A test_find_records_keys N/A N/A self N/A N/A N/A test extracting subset of record keys N/A found N/A N/A N/A self db find_records N/A msg_id N/A $ne keys N/A submitted completed N/A rec found N/A N/A N/A N/A self assertEqual N/A set N/A N/A rec keys N/A set N/A msg_id submitted completed N/A test_find_records_msg_id N/A N/A self N/A N/A N/A ensure msg_id is always in found records N/A found N/A N/A N/A self db find_records N/A msg_id N/A $ne keys N/A submitted completed N/A rec found N/A N/A N/A N/A self assertTrue N/A msg_id N/A N/A rec keys N/A found N/A N/A N/A self db find_records N/A msg_id N/A $ne keys N/A submitted N/A rec found N/A N/A N/A N/A self assertTrue N/A msg_id N/A N/A rec keys N/A found N/A N/A N/A self db find_records N/A msg_id N/A $ne keys N/A msg_id N/A rec found N/A N/A N/A N/A self assertTrue N/A msg_id N/A N/A rec keys N/A test_find_records_in N/A N/A self N/A N/A N/A test finding records with '$in','$nin' operators N/A hist N/A N/A N/A self db get_history N/A even N/A hist N/A 2 N/A odd N/A hist N/A 1 2 N/A recs N/A N/A N/A self db find_records N/A msg_id N/A $in even N/A found N/A N/A r N/A msg_id N/A r recs N/A N/A N/A self assertEqual N/A set even N/A set found N/A recs N/A N/A N/A self db find_records N/A msg_id N/A $nin even N/A found N/A N/A r N/A msg_id N/A r recs N/A N/A N/A self assertEqual N/A set odd N/A set found N/A test_get_history N/A N/A self N/A N/A N/A msg_ids N/A N/A N/A self db get_history N/A latest N/A datetime 1984 1 1 N/A msg_id msg_ids N/A N/A rec N/A N/A N/A self db get_record msg_id N/A newt N/A rec N/A submitted N/A N/A N/A self assertTrue N/A newt latest N/A latest newt N/A msg_id N/A N/A N/A self load_records 1 N/A -1 N/A N/A N/A self assertEqual N/A N/A N/A N/A self db get_history N/A -1 msg_id N/A test_datetime N/A N/A self N/A N/A N/A get/set timestamps with datetime objects N/A msg_id N/A N/A N/A N/A self db get_history N/A -1 N/A rec N/A N/A N/A self db get_record msg_id N/A N/A N/A self assertTrue N/A isinstance N/A rec N/A submitted datetime N/A N/A N/A N/A self db update_record msg_id N/A dict completed N/A N/A datetime now N/A rec N/A N/A N/A self db get_record msg_id N/A N/A N/A self assertTrue N/A isinstance N/A rec N/A completed datetime N/A test_drop_matching N/A N/A self N/A N/A N/A msg_ids N/A N/A self load_records 10 N/A query N/A msg_id N/A $in msg_ids N/A N/A N/A N/A self db drop_matching_records query N/A recs N/A N/A N/A self db find_records query N/A N/A N/A self assertEqual N/A len recs 0 N/A test_null N/A N/A self N/A N/A N/A test None comparison queries N/A msg_ids N/A N/A self load_records 10 N/A query N/A msg_id None N/A recs N/A N/A N/A self db find_records query N/A N/A N/A self assertEqual N/A len recs 0 N/A query N/A msg_id N/A $ne None N/A recs N/A N/A N/A self db find_records query N/A N/A N/A self assertTrue N/A N/A len recs 10 N/A test_pop_safe_get N/A N/A self N/A N/A N/A editing query results shouldn't affect record [get] N/A msg_id N/A N/A N/A N/A self db get_history N/A -1 N/A rec N/A N/A N/A self db get_record msg_id N/A N/A N/A rec pop buffers N/A N/A rec N/A garbage hello N/A N/A N/A rec N/A header N/A msg_id fubar N/A rec2 N/A N/A N/A self db get_record msg_id N/A N/A N/A self assertTrue N/A buffers rec2 N/A N/A N/A self assertFalse N/A garbage rec2 N/A N/A N/A self assertEqual N/A N/A rec2 N/A header N/A msg_id msg_id N/A test_pop_safe_find N/A N/A self N/A N/A N/A editing query results shouldn't affect record [find] N/A msg_id N/A N/A N/A N/A self db get_history N/A -1 N/A rec N/A N/A N/A N/A self db find_records N/A msg_id msg_id N/A 0 N/A N/A N/A rec pop buffers N/A N/A rec N/A garbage hello N/A N/A N/A rec N/A header N/A msg_id fubar N/A rec2 N/A N/A N/A N/A self db find_records N/A msg_id msg_id N/A 0 N/A N/A N/A self assertTrue N/A buffers rec2 N/A N/A N/A self assertFalse N/A garbage rec2 N/A N/A N/A self assertEqual N/A N/A rec2 N/A header N/A msg_id msg_id N/A test_pop_safe_find_keys N/A N/A self N/A N/A N/A editing query results shouldn't affect record [find+keys] N/A msg_id N/A N/A N/A N/A self db get_history N/A -1 N/A rec N/A N/A N/A N/A self db find_records N/A msg_id msg_id keys N/A buffers header N/A 0 N/A N/A N/A rec pop buffers N/A N/A rec N/A garbage hello N/A N/A N/A rec N/A header N/A msg_id fubar N/A rec2 N/A N/A N/A N/A self db find_records N/A msg_id msg_id N/A 0 N/A N/A N/A self assertTrue N/A buffers rec2 N/A N/A N/A self assertFalse N/A garbage rec2 N/A N/A N/A self assertEqual N/A N/A rec2 N/A header N/A msg_id msg_id N/A N/A TestDictBackend N/A TaskDBTest TestCase N/A create_db N/A N/A self N/A N/A N/A N/A DictDB N/A test_cull_count N/A N/A self N/A N/A N/A N/A self db N/A N/A self create_db N/A N/A N/A self db record_limit 20 N/A N/A N/A self db cull_fraction 0.2 N/A N/A N/A self load_records 20 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 20 N/A N/A N/A self load_records 1 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 17 N/A N/A N/A self load_records 3 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 20 N/A N/A N/A self load_records 1 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 17 N/A i N/A range 25 N/A N/A N/A N/A self load_records 1 N/A N/A N/A self assertTrue N/A N/A len N/A N/A N/A self db get_history 17 N/A N/A N/A self assertTrue N/A N/A len N/A N/A N/A self db get_history 20 N/A test_cull_size N/A N/A self N/A N/A N/A N/A self db N/A N/A self create_db N/A N/A N/A self db size_limit 1000 N/A N/A N/A self db cull_fraction 0.2 N/A N/A N/A self load_records 100 buffer_size 10 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 100 N/A N/A N/A self load_records 1 buffer_size 0 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 101 N/A N/A N/A self load_records 1 buffer_size 1 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 81 N/A test_cull_size_drop N/A N/A self N/A N/A N/A dropping records updates tracked buffer size N/A N/A self db N/A N/A self create_db N/A N/A N/A self db size_limit 1000 N/A N/A N/A self db cull_fraction 0.2 N/A N/A N/A self load_records 100 buffer_size 10 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 100 N/A N/A N/A N/A self db drop_record N/A N/A N/A N/A self db get_history N/A -1 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 99 N/A N/A N/A self load_records 1 buffer_size 5 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 100 N/A N/A N/A self load_records 1 buffer_size 5 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 101 N/A N/A N/A self load_records 1 buffer_size 1 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 81 N/A test_cull_size_update N/A N/A self N/A N/A N/A updating records updates tracked buffer size N/A N/A self db N/A N/A self create_db N/A N/A N/A self db size_limit 1000 N/A N/A N/A self db cull_fraction 0.2 N/A N/A N/A self load_records 100 buffer_size 10 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 100 N/A msg_id N/A N/A N/A N/A self db get_history N/A -1 N/A N/A N/A N/A self db update_record msg_id N/A dict result_buffers N/A N/A N/A os urandom 10 buffers N/A N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 100 N/A N/A N/A N/A self db update_record msg_id N/A dict result_buffers N/A N/A N/A os urandom 11 buffers N/A N/A N/A N/A self assertEqual N/A len N/A N/A N/A self db get_history 79 N/A N/A TestSQLiteBackend N/A TaskDBTest TestCase N/A create_db N/A N/A self N/A N/A N/A N/A location fname N/A N/A N/A os path split temp_db N/A log N/A N/A logging getLogger test N/A N/A N/A log setLevel N/A logging CRITICAL N/A N/A SQLiteDB location location fname fname log log N/A N/A N/A dec skip_without sqlite3 tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A self db _db close N/A N/A teardown N/A N/A N/A N/A N/A cleanup task db file after all tests have run N/A N/A N/A N/A N/A os remove temp_db N/A N/A N/A N/A N/A