Module ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias identifier ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareNotIn Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad Num decorator_list decorator_list Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str ClassDef bases NameLoad body Assign NameStore ListLoad Str Assign NameStore TupleLoad Str Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Assign NameStore ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Call NameLoad Str keyword ListLoad AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num Assign NameStore ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list
N/A datetime datetime timedelta N/A simplejson django.core.urlresolvers reverse django.test.client Client django.contrib.auth.models User locking models views LOCK_TIMEOUT locking.tests.utils TestCase locking.tests models testmodels AppTestCase N/A TestCase N/A N/A fixtures N/A locking_scenario setUp N/A N/A self N/A N/A N/A N/A N/A self alt_story N/A self story N/A N/A N/A N/A testmodels Story objects all N/A users N/A N/A N/A User objects all N/A N/A N/A self user N/A self alt_user users N/A test_hard_lock N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user hard_lock True N/A N/A N/A self assertEquals N/A N/A self story lock_type hard N/A N/A N/A N/A self story save N/A N/A N/A self assertRaises N/A models ObjectLockedError N/A N/A self story save N/A test_soft_lock N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story save N/A N/A N/A self assertEquals N/A N/A self story lock_type soft N/A N/A N/A N/A self story save N/A test_lock_for N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A self assertTrue N/A N/A self story is_locked N/A N/A N/A N/A self story save N/A N/A N/A self assertTrue N/A N/A self story is_locked N/A test_lock_for_overwrite N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self alt_user N/A N/A N/A self assertRaises N/A models ObjectLockedError N/A N/A self story lock_for N/A self user N/A test_unlock N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story unlock N/A N/A N/A self assertFalse N/A N/A self story is_locked N/A test_hard_unlock N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user hard_lock True N/A N/A N/A N/A self story unlock_for N/A self user N/A N/A N/A self assertFalse N/A N/A self story is_locked N/A N/A N/A N/A self story unlock N/A test_unlock_for_self N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story unlock_for N/A self user N/A N/A N/A self assertFalse N/A N/A self story is_locked N/A test_unlock_for_disallowed N/A N/A self hard_lock N/A False N/A N/A N/A N/A N/A self story lock_for N/A self alt_user hard_lock hard_lock N/A N/A N/A self assertRaises N/A models ObjectLockedError N/A N/A self story unlock_for N/A self user N/A test_hard_unlock_for_disallowed N/A N/A self N/A N/A N/A N/A N/A self test_unlock_for_disallowed hard_lock True N/A test_lock_expiration N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A self assertTrue N/A N/A self story is_locked N/A N/A N/A self story _locked_at N/A N/A N/A datetime today N/A timedelta minutes N/A LOCK_TIMEOUT 1 N/A N/A N/A self assertFalse N/A N/A self story is_locked N/A test_lock_applies_to N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self alt_user N/A applies N/A N/A N/A self story lock_applies_to N/A self user N/A N/A N/A self assertTrue applies N/A test_lock_doesnt_apply_to N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A applies N/A N/A N/A self story lock_applies_to N/A self user N/A N/A N/A self assertFalse applies N/A test_is_locked_by N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A self assertEquals N/A N/A self story locked_by N/A self user N/A test_is_unlocked N/A N/A self N/A N/A N/A N/A N/A self assertFalse N/A N/A self story is_locked N/A test_gather_lockable_models N/A N/A self N/A N/A locking utils locking.tests models N/A lockable_models N/A N/A utils gather_lockable_models N/A N/A N/A self assertTrue N/A story N/A lockable_models N/A tests N/A N/A N/A self assertTrue N/A unlockable N/A lockable_models N/A tests N/A test_locking_bit_when_locking N/A N/A self N/A N/A N/A N/A N/A self story content Blah N/A N/A N/A self assertEquals N/A N/A N/A self story _state locking False N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A self assertEquals N/A N/A N/A self story _state locking True N/A N/A N/A N/A self story save N/A N/A N/A self assertEquals N/A N/A N/A self story _state locking False N/A test_locking_bit_when_unlocking N/A N/A self N/A N/A N/A N/A N/A self story content Blah N/A N/A N/A self assertEquals N/A N/A N/A self story _state locking False N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story unlock_for N/A self user N/A N/A N/A self assertEquals N/A N/A N/A self story _state locking True N/A N/A N/A N/A self story save N/A N/A N/A self assertEquals N/A N/A N/A self story _state locking False N/A test_unlocked_manager N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story save N/A N/A N/A self assertEquals N/A N/A N/A N/A testmodels Story objects count 2 N/A N/A N/A self assertEquals N/A N/A N/A N/A testmodels Story unlocked count 1 N/A N/A N/A self assertEquals N/A N/A N/A N/A N/A testmodels Story unlocked get pk N/A N/A self alt_story pk pk 1 N/A N/A N/A self assertRaises N/A N/A testmodels Story DoesNotExist N/A N/A N/A testmodels Story unlocked get pk N/A N/A self story pk N/A N/A N/A self assertNotEquals N/A N/A N/A N/A N/A N/A testmodels Story unlocked all N/A 0 pk N/A N/A self story pk N/A test_locked_manager N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story save N/A N/A N/A self assertEquals N/A N/A N/A N/A testmodels Story objects count 2 N/A N/A N/A self assertEquals N/A N/A N/A N/A testmodels Story locked count 1 N/A N/A N/A self assertEquals N/A N/A N/A N/A N/A testmodels Story locked get pk N/A N/A self story pk pk 2 N/A N/A N/A self assertRaises N/A N/A testmodels Story DoesNotExist N/A N/A N/A testmodels Story locked get pk N/A N/A self alt_story pk N/A N/A N/A self assertEquals N/A N/A N/A N/A N/A N/A testmodels Story locked all N/A 0 pk N/A N/A self story pk N/A test_managers N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story save N/A locked N/A N/A N/A N/A testmodels Story locked all N/A unlocked N/A N/A N/A N/A testmodels Story unlocked all N/A N/A N/A self assertEquals N/A N/A locked count 1 N/A N/A N/A self assertEquals N/A N/A unlocked count 1 N/A N/A N/A self assertTrue N/A N/A len N/A N/A N/A set locked intersection N/A set unlocked 0 N/A N/A N/A users N/A N/A username password Stan green pastures N/A username password Fred pastures of green BrowserTestCase N/A TestCase N/A N/A fixtures N/A locking_scenario N/A apps N/A locking.tests django.contrib.auth django.contrib.admin setUp N/A N/A self N/A N/A N/A N/A self story story N/A N/A N/A N/A N/A testmodels Story objects all N/A 0 N/A user_objs N/A N/A N/A User objects all N/A N/A N/A self user N/A self alt_user user_objs N/A N/A self c N/A Client N/A N/A N/A N/A self c login N/A users N/A 0 N/A story_args N/A N/A N/A story _meta app_label N/A N/A story _meta module_name N/A story pk N/A N/A self urls N/A change changelist lock unlock is_locked js_variables N/A reverse admin:tests_story_change args N/A N/A story pk N/A reverse admin:tests_story_changelist N/A reverse N/A views lock args story_args N/A reverse N/A views unlock args story_args N/A reverse N/A views is_locked args story_args N/A reverse N/A views js_variables N/A tearDown N/A N/A self N/A N/A N/A N/A test_lock_when_allowed N/A N/A self N/A N/A N/A res N/A N/A N/A self c get N/A N/A self urls N/A lock N/A N/A N/A self assertEquals N/A res status_code 200 N/A story N/A N/A N/A N/A testmodels Story objects get pk N/A N/A self story id N/A N/A N/A self assertTrue N/A story is_locked N/A test_lock_when_logged_out N/A N/A self N/A N/A N/A N/A N/A N/A self c logout N/A res N/A N/A N/A self c get N/A N/A self urls N/A lock N/A N/A N/A self assertEquals N/A res status_code 401 N/A test_lock_when_unauthorized N/A N/A self N/A N/A N/A N/A N/A N/A self c logout N/A N/A N/A N/A self c login N/A users N/A 1 N/A res N/A N/A N/A self c get N/A N/A self urls N/A lock N/A N/A N/A self assertEquals N/A res status_code 401 N/A test_lock_when_does_not_apply N/A N/A self N/A N/A N/A obj N/A N/A N/A N/A testmodels Unlockable objects get pk 1 N/A args N/A N/A N/A obj _meta app_label N/A N/A obj _meta module_name N/A obj pk N/A url N/A reverse N/A views lock args args N/A res N/A N/A N/A self c get url N/A N/A N/A self assertEquals N/A res status_code 404 N/A test_lock_when_disallowed N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self alt_user N/A N/A N/A N/A self story save N/A res N/A N/A N/A self c get N/A N/A self urls N/A lock N/A N/A N/A self assertEquals N/A res status_code 403 N/A test_unlock_when_allowed N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story save N/A res N/A N/A N/A self c get N/A N/A self urls N/A unlock N/A N/A N/A self assertEquals N/A res status_code 200 N/A story N/A N/A N/A N/A testmodels Story objects get pk N/A N/A self story id N/A N/A N/A self assertFalse N/A story is_locked N/A test_unlock_when_disallowed N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self alt_user N/A N/A N/A N/A self story save N/A res N/A N/A N/A self c get N/A N/A self urls N/A unlock N/A N/A N/A self assertEquals N/A res status_code 403 N/A test_is_locked_when_applies N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self alt_user N/A N/A N/A N/A self story save N/A res N/A N/A N/A self c get N/A N/A self urls N/A is_locked N/A res N/A N/A simplejson loads N/A res content N/A N/A N/A self assertTrue N/A res N/A applies N/A N/A N/A self assertTrue N/A res N/A is_active N/A test_is_locked_when_self N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self user N/A N/A N/A N/A self story save N/A res N/A N/A N/A self c get N/A N/A self urls N/A is_locked N/A res N/A N/A simplejson loads N/A res content N/A N/A N/A self assertFalse N/A res N/A applies N/A N/A N/A self assertTrue N/A res N/A is_active N/A test_js_variables N/A N/A self N/A N/A N/A res N/A N/A N/A self c get N/A N/A self urls N/A js_variables N/A N/A N/A self assertEquals N/A res status_code 200 N/A N/A N/A self assertContains res LOCK_TIMEOUT N/A test_admin_media N/A N/A self N/A N/A N/A res N/A N/A N/A self c get N/A N/A self urls N/A change N/A N/A N/A self assertContains res admin.locking.js N/A test_admin_changelist_when_locked N/A N/A self N/A N/A N/A N/A N/A N/A self story lock_for N/A self alt_user N/A N/A N/A N/A self story save N/A res N/A N/A N/A self c get N/A N/A self urls N/A changelist N/A N/A N/A self assertContains res locking/img/lock.png N/A test_admin_changelist_when_locked_self N/A N/A self N/A N/A N/A N/A N/A self test_lock_when_allowed N/A res N/A N/A N/A self c get N/A N/A self urls N/A changelist N/A N/A N/A self assertContains res locking/img/page_edit.png N/A test_admin_changelist_when_unlocked N/A N/A self N/A N/A N/A res N/A N/A N/A self c get N/A N/A self urls N/A changelist N/A N/A N/A self assertNotContains res locking/img N/A N/A