Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str ListLoad Dict Str Num Dict Str Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Dict Str Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Dict Str Str decorator_list decorator_list
N/A N/A json unittest TestCase mock patch Mock copy deepcopy pluct.resource Resource pluct.schema Schema pluct.session Session ResourceRelTestCase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A raw_schema N/A links N/A N/A rel href item /root/{id} N/A rel href related /root/{slug}/{related} N/A rel href method create /root POST N/A rel href list /root N/A N/A self data N/A id slug items 123 slug N/A N/A ide 1 N/A ida 2 N/A N/A self session N/A Session N/A N/A self schema N/A Schema /schema raw_schema session N/A self session N/A N/A self response N/A Mock N/A N/A N/A self response url http://example.com N/A N/A self profile_url http://example.com/schema N/A content_type N/A application/json; profile=%s N/A self profile_url N/A N/A N/A self response headers N/A content-type content_type N/A N/A self resource N/A N/A Resource from_data http://much.url.com/ data N/A deepcopy N/A self data schema N/A self schema session N/A self session N/A N/A self resource2 N/A N/A Resource from_data http://much.url.com/ data N/A deepcopy N/A self data schema N/A self schema session N/A self session response N/A self response N/A N/A self request_patcher N/A N/A patch object N/A self session request N/A N/A self request N/A N/A N/A self request_patcher start N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self request_patcher stop N/A test_rel_follows_content_type_profile N/A N/A self N/A N/A N/A N/A N/A N/A self resource2 rel create data N/A self resource2 N/A N/A N/A N/A self request assert_called_with http://much.url.com/root method post data N/A N/A json dumps N/A self data headers N/A N/A self response headers N/A test_get_content_type_for_resource_default N/A N/A self N/A N/A N/A content_type N/A N/A N/A self resource _get_content_type_for_resource N/A self resource N/A N/A N/A self assertEqual content_type application/json; profile=/schema N/A test_get_content_type_for_resource_with_response N/A N/A self N/A N/A N/A content_type N/A N/A N/A self resource2 _get_content_type_for_resource N/A self resource2 N/A N/A N/A self assertEqual content_type N/A N/A N/A self response headers N/A content-type N/A test_expand_uri_returns_simple_link N/A N/A self N/A N/A N/A uri N/A N/A N/A self resource expand_uri create N/A N/A N/A self assertEqual uri /root N/A test_expand_uri_returns_interpolated_link N/A N/A self N/A N/A N/A uri N/A N/A N/A self resource expand_uri related related foo N/A N/A N/A self assertEqual uri /root/slug/foo N/A test_has_rel_finds_existent_link N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A self resource has_rel create N/A test_has_rel_detects_unexistent_link N/A N/A self N/A N/A N/A N/A N/A self assertFalse N/A N/A N/A self resource has_rel foo_bar N/A test_delegates_request_to_session N/A N/A self N/A N/A N/A N/A N/A N/A self resource rel create data N/A self resource N/A N/A N/A N/A self request assert_called_with http://much.url.com/root method post data N/A N/A json dumps N/A self data headers N/A content-type application/json; profile=/schema N/A test_accepts_extra_parameters N/A N/A self N/A N/A N/A N/A N/A N/A self resource rel create data N/A self resource timeout 333 N/A N/A N/A N/A self request assert_called_with http://much.url.com/root method post data N/A N/A json dumps N/A self data headers N/A content-type application/json; profile=/schema timeout 333 N/A test_accepts_dict N/A N/A self N/A N/A N/A resource N/A name Testing N/A N/A N/A N/A self resource rel create data resource N/A N/A N/A N/A self request assert_called_with http://much.url.com/root method post data N/A N/A json dumps resource headers N/A content-type application/json N/A test_uses_get_as_default_verb N/A N/A self N/A N/A N/A N/A N/A N/A self resource rel list N/A N/A N/A N/A self request assert_called_with http://much.url.com/root method get N/A test_expands_uri_using_resource_data N/A N/A self N/A N/A N/A N/A N/A N/A self resource rel item N/A N/A N/A N/A self request assert_called_with http://much.url.com/root/123 method get N/A test_expands_uri_using_params N/A N/A self N/A N/A N/A N/A N/A N/A self resource rel item params N/A id 345 N/A N/A N/A N/A self request assert_called_with http://much.url.com/root/345 method get params N/A N/A test_expands_uri_using_resource_data_and_params N/A N/A self N/A N/A N/A N/A N/A N/A self resource rel related params N/A related something N/A N/A N/A N/A self request assert_called_with http://much.url.com/root/slug/something method get params N/A N/A test_extracts_expanded_params_from_the_uri N/A N/A self N/A N/A N/A N/A N/A N/A self resource rel item params N/A id fields 345 slug N/A N/A N/A N/A self request assert_called_with http://much.url.com/root/345 method get params N/A fields slug N/A N/A