Module ImportFrom alias ImportFrom alias ImportFrom alias alias alias Import alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Return Dict Str Str Str Str Str NameLoad Num ListLoad ListLoad Dict Str Str NameLoad NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad keyword ListLoad Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword ListLoad Assign NameStore Yield Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad keyword ListLoad Str Str Str Str Str keyword NameLoad keyword NameLoad keyword Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr attr Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Num Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults vararg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword ListLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr ListLoad FunctionDef arguments args NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr ListLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr ListLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr ListLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore Yield Call NameLoad NameLoad For NameStore NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq NameLoad NameLoad body Continue If Call AttributeLoad NameLoad attr NameLoad body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad ListComp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr body Raise Call NameLoad Num Str decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str Num keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Str keyword Call NameLoad Str Str keyword Dict Str Str Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Yield Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Call NameLoad Str Str keyword Dict Str Str Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str Num keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Str keyword Call NameLoad Str Str keyword Dict Str Str Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Str ImportFrom alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Num Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Lambda arguments args defaults Num Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr Call NameLoad TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str Num keyword ListLoad AttributeLoad NameLoad attr Expr Yield Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str ListLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str Num keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str Num keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str ListLoad Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call NameLoad Str Num keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr decorator_list
N/A tests unittest twisted.internet defer mock Mock call ANY N/A json utils MockHttpResource MockClock DeferredMockCallable setup_test_homeserver synapse.api.errors AuthError synapse.handlers.typing TypingNotificationHandler synapse.types UserID _expect_edu N/A N/A destination edu_type content origin N/A test N/A N/A N/A origin origin_server_ts pdus edus pdu_failures origin 1000000 N/A N/A N/A edu_type content edu_type content N/A N/A _make_edu_json N/A N/A origin edu_type content N/A N/A N/A N/A N/A json dumps N/A _expect_edu test edu_type content origin origin N/A JustTypingNotificationHandlers N/A object N/A __init__ N/A N/A self hs N/A N/A N/A N/A self typing_notification_handler N/A TypingNotificationHandler hs N/A N/A TypingNotificationsTestCase N/A N/A unittest TestCase N/A N/A Tests typing notifications to rooms. setUp N/A N/A self N/A N/A N/A N/A self clock N/A MockClock N/A N/A self mock_http_client N/A Mock spec N/A N/A N/A N/A self mock_http_client put_json N/A DeferredMockCallable N/A N/A self mock_federation_resource N/A MockHttpResource N/A mock_notifier N/A Mock spec N/A on_new_event N/A N/A self on_new_event N/A mock_notifier on_new_event N/A N/A self auth N/A Mock spec N/A N/A hs N/A N/A setup_test_homeserver auth N/A self auth clock N/A self clock datastore N/A Mock spec N/A prep_send_transaction delivered_txn get_received_txn_response set_received_txn_response get_destination_retry_timings handlers None notifier mock_notifier resource_for_client N/A Mock resource_for_federation N/A self mock_federation_resource http_client N/A self mock_http_client keyring N/A Mock N/A N/A hs handlers N/A JustTypingNotificationHandlers hs N/A N/A self handler N/A N/A N/A hs get_handlers typing_notification_handler N/A N/A self event_source N/A N/A N/A N/A hs get_event_sources sources N/A typing N/A N/A self datastore N/A N/A hs get_datastore N/A retry_timings_res N/A destination retry_last_ts retry_interval 0 0 N/A N/A N/A N/A self datastore get_destination_retry_timings return_value N/A N/A defer succeed retry_timings_res get_received_txn_response N/A N/A N/A args N/A N/A N/A N/A defer succeed None N/A N/A N/A N/A self datastore get_received_txn_response get_received_txn_response N/A N/A self room_id a-room N/A N/A N/A hs handlers room_member_handler N/A Mock spec N/A N/A N/A self room_member_handler N/A N/A hs handlers room_member_handler N/A N/A self room_members N/A get_rooms_for_user N/A N/A user N/A N/A N/A N/A user N/A self room_members N/A N/A N/A N/A defer succeed N/A N/A self room_id N/A N/A N/A N/A defer succeed N/A N/A N/A N/A N/A self room_member_handler get_rooms_for_user get_rooms_for_user get_room_members N/A N/A room_id N/A N/A N/A N/A room_id N/A self room_id N/A N/A N/A N/A defer succeed N/A self room_members N/A N/A N/A N/A defer succeed N/A N/A N/A N/A N/A self room_member_handler get_room_members get_room_members get_joined_rooms_for_user N/A N/A user N/A N/A N/A N/A user N/A self room_members N/A N/A N/A N/A defer succeed N/A N/A self room_id N/A N/A N/A N/A defer succeed N/A N/A N/A N/A N/A self room_member_handler get_joined_rooms_for_user get_joined_rooms_for_user fetch_room_distributions_into N/A N/A room_id localusers remotedomains ignore_user N/A None None None N/A N/A members N/A N/A get_room_members room_id N/A member members N/A N/A N/A N/A ignore_user None N/A member ignore_user N/A N/A N/A N/A N/A hs is_mine member N/A N/A N/A localusers None N/A N/A N/A N/A localusers add member N/A N/A N/A remotedomains None N/A N/A N/A N/A remotedomains add N/A member domain N/A N/A defer inlineCallbacks N/A N/A N/A self room_member_handler fetch_room_distributions_into fetch_room_distributions_into check_joined_room N/A N/A room_id user_id N/A N/A N/A N/A user_id N/A N/A N/A u to_string N/A u N/A self room_members N/A N/A N/A AuthError 401 User is not in the room N/A N/A N/A N/A self auth check_joined_room check_joined_room N/A N/A self u_apple N/A N/A UserID from_string @apple:test N/A N/A self u_banana N/A N/A UserID from_string @banana:test N/A N/A self u_onion N/A N/A UserID from_string @onion:farm N/A N/A defer inlineCallbacks test_started_typing_local N/A N/A self N/A N/A N/A N/A self room_members N/A N/A self u_apple N/A self u_banana N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 0 N/A N/A N/A N/A N/A self handler started_typing target_user N/A self u_apple auth_user N/A self u_apple room_id N/A self room_id timeout 20000 N/A N/A N/A N/A self on_new_event assert_has_calls N/A N/A call typing_key 1 rooms N/A N/A self room_id N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 1 N/A events N/A N/A N/A N/A self event_source get_new_events room_ids N/A N/A self room_id from_key 0 N/A N/A N/A self assertEquals N/A events N/A 0 N/A N/A type room_id content m.typing N/A self room_id N/A user_ids N/A N/A N/A N/A self u_apple to_string N/A N/A defer inlineCallbacks test_started_typing_remote_send N/A N/A self N/A N/A N/A N/A self room_members N/A N/A self u_apple N/A self u_onion N/A put_json N/A N/A self mock_http_client put_json N/A N/A N/A put_json expect_call_and_return N/A call farm path /_matrix/federation/v1/send/1000000/ data N/A _expect_edu farm m.typing content N/A room_id user_id typing N/A self room_id N/A N/A N/A self u_apple to_string True json_data_callback ANY long_retries True N/A N/A defer succeed N/A 200 OK N/A N/A N/A N/A N/A self handler started_typing target_user N/A self u_apple auth_user N/A self u_apple room_id N/A self room_id timeout 20000 N/A N/A N/A N/A put_json await_calls N/A N/A defer inlineCallbacks test_started_typing_remote_recv N/A N/A self N/A N/A N/A N/A self room_members N/A N/A self u_apple N/A self u_onion N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 0 N/A N/A N/A N/A N/A self mock_federation_resource trigger PUT /_matrix/federation/v1/send/1000000/ N/A _make_edu_json farm m.typing content N/A room_id user_id typing N/A self room_id N/A N/A N/A self u_onion to_string True N/A N/A N/A N/A self on_new_event assert_has_calls N/A N/A call typing_key 1 rooms N/A N/A self room_id N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 1 N/A events N/A N/A N/A N/A self event_source get_new_events room_ids N/A N/A self room_id from_key 0 N/A N/A N/A self assertEquals N/A events N/A 0 N/A N/A type room_id content m.typing N/A self room_id N/A user_ids N/A N/A N/A N/A self u_onion to_string N/A N/A defer inlineCallbacks test_stopped_typing N/A N/A self N/A N/A N/A N/A self room_members N/A N/A self u_apple N/A self u_banana N/A self u_onion N/A put_json N/A N/A self mock_http_client put_json N/A N/A N/A put_json expect_call_and_return N/A call farm path /_matrix/federation/v1/send/1000000/ data N/A _expect_edu farm m.typing content N/A room_id user_id typing N/A self room_id N/A N/A N/A self u_apple to_string False json_data_callback ANY long_retries True N/A N/A defer succeed N/A 200 OK synapse.handlers.typing RoomMember N/A member N/A RoomMember N/A self room_id N/A self u_apple N/A N/A N/A N/A self handler _member_typing_until N/A member 1002000 N/A N/A N/A N/A self handler _member_typing_timer N/A member N/A N/A N/A self clock call_later 1002 N/A N/A N/A N/A 0 N/A N/A N/A N/A self handler _room_typing N/A N/A self room_id N/A set N/A N/A self u_apple N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 0 N/A N/A N/A N/A N/A self handler stopped_typing target_user N/A self u_apple auth_user N/A self u_apple room_id N/A self room_id N/A N/A N/A N/A self on_new_event assert_has_calls N/A N/A call typing_key 1 rooms N/A N/A self room_id N/A N/A N/A N/A put_json await_calls N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 1 N/A events N/A N/A N/A N/A self event_source get_new_events room_ids N/A N/A self room_id from_key 0 N/A N/A N/A self assertEquals N/A events N/A 0 N/A N/A type room_id content m.typing N/A self room_id N/A user_ids N/A N/A N/A defer inlineCallbacks test_typing_timeout N/A N/A self N/A N/A N/A N/A self room_members N/A N/A self u_apple N/A self u_banana N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 0 N/A N/A N/A N/A N/A self handler started_typing target_user N/A self u_apple auth_user N/A self u_apple room_id N/A self room_id timeout 10000 N/A N/A N/A N/A self on_new_event assert_has_calls N/A N/A call typing_key 1 rooms N/A N/A self room_id N/A N/A N/A N/A self on_new_event reset_mock N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 1 N/A events N/A N/A N/A N/A self event_source get_new_events room_ids N/A N/A self room_id from_key 0 N/A N/A N/A self assertEquals N/A events N/A 0 N/A N/A type room_id content m.typing N/A self room_id N/A user_ids N/A N/A N/A N/A self u_apple to_string N/A N/A N/A N/A self clock advance_time 11 N/A N/A N/A N/A self on_new_event assert_has_calls N/A N/A call typing_key 2 rooms N/A N/A self room_id N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 2 N/A events N/A N/A N/A N/A self event_source get_new_events room_ids N/A N/A self room_id from_key 1 N/A N/A N/A self assertEquals N/A events N/A 0 N/A N/A type room_id content m.typing N/A self room_id N/A user_ids N/A N/A N/A N/A N/A N/A self handler started_typing target_user N/A self u_apple auth_user N/A self u_apple room_id N/A self room_id timeout 10000 N/A N/A N/A N/A self on_new_event assert_has_calls N/A N/A call typing_key 3 rooms N/A N/A self room_id N/A N/A N/A N/A self on_new_event reset_mock N/A N/A N/A self assertEquals N/A N/A N/A self event_source get_current_key 3 N/A events N/A N/A N/A N/A self event_source get_new_events room_ids N/A N/A self room_id from_key 0 N/A N/A N/A self assertEquals N/A events N/A 0 N/A N/A type room_id content m.typing N/A self room_id N/A user_ids N/A N/A N/A N/A self u_apple to_string N/A N/A defer inlineCallbacks N/A