Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore TupleLoad Num Num Num Num Num body Assign SubscriptStore NameLoad Index BinOpMod Str NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr 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 For NameStore TupleLoad Num Num Num Num Num body Assign SubscriptStore NameLoad Index BinOpMod Str NameLoad BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index BinOpMod Str NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Call NameLoad Num Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore Call NameLoad keyword NameLoad keyword BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore ListLoad While UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list decorator_list
N/A N/A Tests for johnny-cache.  Much of johnny cache is designed to cache things
forever, and because it aims to keep coherency despite that it's important
that it be tested thoroughly to make sure no changes introduce the possibility
of stale data in the cache. threading Thread current_thread time sleep django.test TestCase johnny localstore cache middleware johnny.compat Queue LocalStoreTest N/A TestCase N/A test_basic_operation N/A N/A self N/A N/A N/A store N/A N/A localstore LocalStore N/A x N/A 1 2 3 4 5 N/A N/A N/A store N/A N/A key%s x N/A value%s x N/A N/A N/A self assertEqual N/A store key3 value3 N/A N/A N/A self assertEqual N/A store N/A key4 value4 N/A N/A N/A self assertEqual N/A len store 5 N/A N/A N/A self assertEqual N/A sorted N/A list store N/A sorted N/A N/A store keys N/A N/A N/A self assertEqual N/A N/A store setdefault key6 value6 value6 N/A N/A N/A self assertEqual N/A store N/A key6 value6 N/A N/A store N/A key2 N/A N/A N/A self assertEqual N/A len store 5 N/A N/A N/A store clear N/A N/A N/A self assertEqual N/A len store 0 N/A test_custom_clear N/A N/A self N/A N/A N/A Test that clear(glob) works as expected. N/A store N/A N/A localstore LocalStore N/A x N/A 1 2 3 4 5 N/A N/A N/A store N/A N/A key_%s x N/A value_%s x N/A N/A store N/A N/A ex_%s x N/A ecks_%s x N/A N/A N/A self assertEqual N/A len store 10 N/A N/A N/A store clear *4 N/A N/A N/A self assertEqual N/A len store 8 N/A N/A N/A store clear ex_* N/A N/A N/A self assertEqual N/A len store 4 N/A N/A N/A self assertEqual N/A len N/A N/A store mget key* 4 N/A N/A N/A self assertEqual N/A len N/A N/A store mget *_2 1 N/A test_thread_locality N/A N/A self N/A N/A N/A store N/A N/A localstore LocalStore N/A N/A store N/A name Hi N/A q N/A Queue do_test N/A N/A N/A N/A N/A N/A sleep 0.1 N/A t N/A current_thread N/A name N/A t name N/A N/A store N/A name 1 N/A N/A store N/A name name N/A N/A N/A q put N/A dict store N/A N/A threads N/A N/A x N/A range 5 N/A N/A t N/A Thread target do_test name N/A thread%x x N/A N/A N/A t start N/A N/A N/A threads append t N/A t threads N/A N/A N/A N/A t join N/A N/A N/A self assertEqual N/A store N/A name Hi N/A N/A N/A self assertEqual N/A N/A q qsize 5 N/A qcontents N/A N/A N/A N/A N/A q empty N/A N/A N/A N/A qcontents append N/A N/A q get N/A N/A N/A self assertEqual N/A len qcontents 5 N/A d qcontents N/A N/A N/A N/A self assertEqual N/A len d 2 N/A N/A N/A self assertNotEqual N/A d N/A name Hi N/A N/A N/A self assertEqual N/A d N/A N/A d N/A name 1 N/A test_localstore_clear_middleware N/A N/A self N/A N/A N/A N/A N/A N/A cache local clear N/A N/A N/A cache local N/A eggs spam N/A N/A N/A cache local N/A charlie chaplin N/A N/A N/A self assertEqual N/A len N/A cache local 2 N/A N/A N/A N/A N/A middleware LocalStoreClearMiddleware process_response None None N/A N/A N/A self assertEqual N/A len N/A cache local 0 N/A N/A