Module ImportFrom alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore ListLoad Dict Str Str Dict Str Str Assign NameStore ListLoad Dict Str Str Str Str Str Str SubscriptLoad NameLoad Index Num Str Str Num Dict Str Str Str Str Str Str SubscriptLoad NameLoad Index Num Str Str Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Return Dict Str Str Str NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Call NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Str Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ unicode_literals N/A mock N/A N/A N/A unittest2 unittest N/A N/A N/A ImportError N/A N/A unittest N/A trovebox TestActions N/A N/A unittest TestCase N/A N/A test_host test.example.com N/A test_photos_dict N/A N/A id photo1 N/A id photo2 N/A test_actions_dict N/A N/A id target target_type type totalRows 1 N/A test_photos_dict N/A 0 photo comment 2 N/A id target target_type type totalRows 2 N/A test_photos_dict N/A 1 photo comment 2 setUp N/A N/A self N/A N/A N/A N/A self client N/A N/A trovebox Trovebox host N/A self test_host N/A N/A self test_photos N/A N/A N/A N/A N/A trovebox objects photo Photo N/A self client photo N/A photo N/A self test_photos_dict N/A N/A self test_actions N/A N/A N/A N/A N/A trovebox objects action Action N/A self client action N/A action N/A self test_actions_dict N/A _return_value N/A N/A result message code N/A 200 N/A N/A N/A message code result message code result N/A staticmethod N/A TestActionCreate N/A TestActions N/A test_action_create N/A N/A self mock_post N/A N/A N/A Check that an action can be created on a photo object N/A N/A mock_post return_value N/A N/A self _return_value N/A N/A self test_actions_dict N/A 0 N/A result N/A N/A N/A N/A self client action create target N/A N/A self test_photos N/A 0 type comment foo bar N/A N/A N/A mock_post assert_called_with N/A /action/%s/photo/create.json N/A N/A N/A self test_photos N/A 0 id type comment foo bar N/A N/A N/A self assertEqual N/A result id 1 N/A N/A N/A self assertEqual N/A N/A result target id photo1 N/A N/A N/A self assertEqual N/A result target_type photo N/A N/A N/A self assertEqual N/A result type comment N/A N/A N/A N/A mock patch object N/A trovebox Trovebox post test_action_create_id N/A N/A self mock_post N/A N/A N/A Check that an action can be created using a photo id N/A N/A mock_post return_value N/A N/A self _return_value N/A N/A self test_actions_dict N/A 0 N/A result N/A N/A N/A N/A self client action create target N/A N/A N/A self test_photos N/A 0 id target_type photo type comment foo bar N/A N/A N/A mock_post assert_called_with N/A /action/%s/photo/create.json N/A N/A N/A self test_photos N/A 0 id type comment foo bar N/A N/A N/A self assertEqual N/A result id 1 N/A N/A N/A self assertEqual N/A N/A result target id photo1 N/A N/A N/A self assertEqual N/A result target_type photo N/A N/A N/A self assertEqual N/A result type comment N/A N/A N/A N/A mock patch object N/A trovebox Trovebox post test_action_create_invalid_type N/A N/A self mock_post N/A N/A N/A 
        Check that an exception is raised if an action is created on an
        invalid object.
         N/A N/A N/A self assertRaises AttributeError N/A N/A N/A N/A N/A N/A self client action create target N/A object N/A N/A N/A N/A mock patch object N/A trovebox Trovebox post test_action_create_invalid_return_type N/A N/A self mock_post N/A N/A N/A Check that an exception is raised if an invalid object is returned N/A N/A mock_post return_value N/A N/A self _return_value N/A target target_type test invalid N/A N/A N/A self assertRaises NotImplementedError N/A N/A N/A N/A N/A N/A self client action create target N/A N/A self test_photos N/A 0 N/A N/A N/A N/A mock patch object N/A trovebox Trovebox post N/A TestActionDelete N/A TestActions N/A test_action_delete N/A N/A self mock_post N/A N/A N/A Check that an action can be deleted N/A N/A mock_post return_value N/A N/A self _return_value True N/A result N/A N/A N/A N/A self client action delete N/A N/A self test_actions N/A 0 foo bar N/A N/A N/A mock_post assert_called_with /action/1/delete.json foo bar N/A N/A N/A self assertEqual result True N/A N/A N/A N/A mock patch object N/A trovebox Trovebox post test_action_delete_id N/A N/A self mock_post N/A N/A N/A Check that an action can be deleted using its ID N/A N/A mock_post return_value N/A N/A self _return_value True N/A result N/A N/A N/A N/A self client action delete 1 foo bar N/A N/A N/A mock_post assert_called_with /action/1/delete.json foo bar N/A N/A N/A self assertEqual result True N/A N/A N/A N/A mock patch object N/A trovebox Trovebox post test_action_object_delete N/A N/A self mock_post N/A N/A N/A Check that an action can be deleted using the action object directly N/A N/A mock_post return_value N/A N/A self _return_value True N/A action N/A N/A self test_actions N/A 0 N/A result N/A N/A action delete foo bar N/A N/A N/A mock_post assert_called_with /action/1/delete.json foo bar N/A N/A N/A self assertEqual result True N/A N/A N/A self assertEqual N/A N/A action get_fields N/A N/A N/A N/A self assertEqual N/A action id None N/A N/A N/A N/A mock patch object N/A trovebox Trovebox post N/A TestActionView N/A TestActions N/A test_action_view N/A N/A self mock_get N/A N/A N/A Check that an action can be viewed N/A N/A mock_get return_value N/A N/A self _return_value N/A N/A self test_actions_dict N/A 1 N/A result N/A N/A N/A N/A self client action view N/A N/A self test_actions N/A 0 name Test N/A N/A N/A mock_get assert_called_with /action/1/view.json name Test N/A N/A N/A self assertEqual N/A result id 2 N/A N/A N/A self assertEqual N/A N/A result target id photo2 N/A N/A N/A self assertEqual N/A result target_type photo N/A N/A N/A N/A mock patch object N/A trovebox Trovebox get test_action_view_id N/A N/A self mock_get N/A N/A N/A Check that an action can be viewed using its ID N/A N/A mock_get return_value N/A N/A self _return_value N/A N/A self test_actions_dict N/A 1 N/A result N/A N/A N/A N/A self client action view 1 name Test N/A N/A N/A mock_get assert_called_with /action/1/view.json name Test N/A N/A N/A self assertEqual N/A result id 2 N/A N/A N/A self assertEqual N/A N/A result target id photo2 N/A N/A N/A self assertEqual N/A result target_type photo N/A N/A N/A N/A mock patch object N/A trovebox Trovebox get test_action_object_view N/A N/A self mock_get N/A N/A N/A Check that an action can be viewed using the action object directly N/A N/A mock_get return_value N/A N/A self _return_value N/A N/A self test_actions_dict N/A 1 N/A action N/A N/A self test_actions N/A 0 N/A N/A N/A action view name Test N/A N/A N/A mock_get assert_called_with /action/1/view.json name Test N/A N/A N/A self assertEqual N/A action id 2 N/A N/A N/A self assertEqual N/A N/A action target id photo2 N/A N/A N/A self assertEqual N/A action target_type photo N/A N/A N/A N/A mock patch object N/A trovebox Trovebox get N/A TestActionMisc N/A TestActions N/A test_update_fields_with_no_target N/A N/A self N/A N/A N/A Check that an action object can be updated with no target N/A action N/A N/A self test_actions N/A 0 N/A N/A action target None N/A N/A action target_type None N/A N/A N/A action _update_fields_with_objects N/A N/A