Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Num Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareGtE NameLoad Call NameLoad NameLoad body Raise Call NameLoad Num Str Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpMod Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Expr Call AttributeLoad NameLoad attr Dict Str ListLoad Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Dict Str ListLoad Str Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Dict Str ListLoad Str NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Dict Str ListLoad Str Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list AttributeLoad NameLoad attr decorator_list
N/A twisted.internet defer N/A V2AlphaRestTestCase synapse.rest.client.v2_alpha filter synapse.api.errors StoreError FilterTestCase N/A V2AlphaRestTestCase N/A N/A USER_ID @apple:test N/A TO_REGISTER N/A filter make_datastore_mock N/A N/A self N/A N/A N/A datastore N/A N/A N/A super FilterTestCase self make_datastore_mock N/A N/A self _user_filters N/A add_user_filter N/A N/A user_localpart definition N/A N/A N/A filters N/A N/A N/A self _user_filters setdefault user_localpart N/A N/A filter_id N/A len filters N/A N/A N/A filters append definition N/A N/A N/A defer succeed filter_id N/A N/A N/A datastore add_user_filter add_user_filter get_user_filter N/A N/A user_localpart filter_id N/A N/A N/A N/A user_localpart N/A self _user_filters N/A N/A N/A StoreError 404 No user N/A filters N/A N/A self _user_filters N/A user_localpart N/A N/A filter_id N/A len filters N/A N/A N/A StoreError 404 No filter N/A N/A N/A defer succeed N/A filters N/A filter_id N/A N/A N/A datastore get_user_filter get_user_filter N/A datastore N/A test_add_filter N/A N/A self N/A N/A N/A N/A code response N/A N/A N/A N/A self mock_resource trigger POST N/A /user/%s/filter N/A self USER_ID {"type": ["m.*"]} N/A N/A N/A self assertEquals 200 code N/A N/A N/A self assertEquals N/A filter_id 0 response N/A N/A N/A self assertIn apple N/A self _user_filters N/A N/A N/A self assertEquals N/A len N/A N/A self _user_filters N/A apple 1 N/A N/A N/A self assertEquals N/A type N/A m.* N/A N/A N/A self _user_filters N/A apple N/A 0 N/A N/A defer inlineCallbacks test_get_filter N/A N/A self N/A N/A N/A N/A N/A self _user_filters N/A apple N/A N/A type N/A m.* N/A N/A code response N/A N/A N/A N/A self mock_resource trigger_get N/A /user/%s/filter/0 N/A self USER_ID N/A N/A N/A self assertEquals 200 code N/A N/A N/A self assertEquals N/A type N/A m.* response N/A N/A defer inlineCallbacks test_get_filter_no_id N/A N/A self N/A N/A N/A N/A N/A self _user_filters N/A apple N/A N/A type N/A m.* N/A N/A code response N/A N/A N/A N/A self mock_resource trigger_get N/A /user/%s/filter/2 N/A self USER_ID N/A N/A N/A self assertEquals 404 code N/A N/A defer inlineCallbacks test_get_filter_no_user N/A N/A self N/A N/A N/A N/A code response N/A N/A N/A N/A self mock_resource trigger_get N/A /user/%s/filter/0 N/A self USER_ID N/A N/A N/A self assertEquals 404 code N/A N/A defer inlineCallbacks N/A