Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Dict Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Dict Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Dict Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Dict Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Dict Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Num NameLoad Dict Str Str Num NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Num AttributeLoad NameLoad attr Dict Str Str Num NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad ListLoad Str AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr Dict Str Str Num NameLoad AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A core.domain exp_services core.domain exp_services_test core.domain rights_manager core.domain summary_services core.domain user_services N/A feconf ExplorationDisplayableSummaries N/A N/A exp_services_test ExplorationServicesUnitTests N/A N/A Test functions for getting displayable exploration summary dicts. N/A ALBERT_EMAIL albert@example.com N/A BOB_EMAIL bob@example.com N/A ALBERT_NAME albert N/A BOB_NAME bob N/A USER_C_NAME c N/A USER_D_NAME d N/A USER_C_EMAIL c@example.com N/A USER_D_EMAIL d@example.com N/A USER_C_PROFILE_PICTURE c_profile_picture N/A EXP_ID_1 eid1 N/A EXP_ID_2 eid2 N/A EXP_ID_3 eid3 N/A EXP_ID_4 eid4 N/A EXP_ID_5 eid5 N/A EXPECTED_VERSION_1 4 N/A EXPECTED_VERSION_2 2 setUp N/A N/A self N/A N/A N/A Populate the database of explorations and their summaries.

        The sequence of events is:
        - (1) Albert creates EXP_ID_1.
        - (2) Bob edits the title of EXP_ID_1.
        - (3) Albert creates EXP_ID_2.
        - (4) Albert edits the title of EXP_ID_1.
        - (5) Albert edits the title of EXP_ID_2.
        - (6) Bob reverts Albert's last edit to EXP_ID_1.
        - Bob tries to publish EXP_ID_2, and is denied access.
        - (7) Albert publishes EXP_ID_2.
        - (8) Albert creates EXP_ID_3
        - (9) Albert publishes EXP_ID_3
        - (10) Albert deletes EXP_ID_3

        - (1) User_3 (has a profile_picture) creates EXP_ID_4.
        - (2) User_4 edits the title of EXP_ID_4.
        - (3) User_4 edits the title of EXP_ID_4.
         N/A N/A N/A N/A super ExplorationDisplayableSummaries self setUp N/A N/A self albert_id N/A N/A self get_user_id_from_email N/A self ALBERT_EMAIL N/A N/A self bob_id N/A N/A self get_user_id_from_email N/A self BOB_EMAIL N/A N/A N/A self signup N/A self ALBERT_EMAIL N/A self ALBERT_NAME N/A N/A N/A self signup N/A self BOB_EMAIL N/A self BOB_NAME N/A N/A N/A self save_new_valid_exploration N/A self EXP_ID_1 N/A self albert_id N/A N/A N/A exp_services update_exploration N/A self bob_id N/A self EXP_ID_1 N/A N/A cmd property_name new_value edit_exploration_property title Exploration 1 title Changed title. N/A N/A N/A self save_new_valid_exploration N/A self EXP_ID_2 N/A self albert_id N/A N/A N/A exp_services update_exploration N/A self albert_id N/A self EXP_ID_1 N/A N/A cmd property_name new_value edit_exploration_property title Exploration 1 Albert title Changed title to Albert1 title. N/A N/A N/A exp_services update_exploration N/A self albert_id N/A self EXP_ID_2 N/A N/A cmd property_name new_value edit_exploration_property title Exploration 2 Albert title Changed title to Albert2 title. N/A N/A N/A exp_services revert_exploration N/A self bob_id N/A self EXP_ID_1 3 2 N/A N/A N/A self assertRaisesRegexp Exception This exploration cannot be published N/A N/A N/A N/A rights_manager publish_exploration N/A self bob_id N/A self EXP_ID_2 N/A N/A N/A rights_manager publish_exploration N/A self albert_id N/A self EXP_ID_2 N/A N/A N/A self save_new_valid_exploration N/A self EXP_ID_3 N/A self albert_id N/A N/A N/A rights_manager publish_exploration N/A self albert_id N/A self EXP_ID_3 N/A N/A N/A exp_services delete_exploration N/A self albert_id N/A self EXP_ID_3 N/A N/A self user_c_id N/A N/A self get_user_id_from_email N/A self USER_C_EMAIL N/A N/A self user_d_id N/A N/A self get_user_id_from_email N/A self USER_D_EMAIL N/A N/A N/A self signup N/A self USER_C_EMAIL N/A self USER_C_NAME N/A N/A N/A self signup N/A self USER_D_EMAIL N/A self USER_D_NAME N/A N/A N/A user_services update_profile_picture_data_url N/A self user_c_id N/A self USER_C_PROFILE_PICTURE N/A N/A N/A self save_new_valid_exploration N/A self EXP_ID_4 N/A self user_c_id N/A N/A N/A exp_services update_exploration N/A self user_d_id N/A self EXP_ID_4 N/A N/A cmd property_name new_value edit_exploration_property title Exploration updated title Changed title once. N/A N/A N/A exp_services update_exploration N/A self user_d_id N/A self EXP_ID_4 N/A N/A cmd property_name new_value edit_exploration_property title Exploration updated title again Changed title twice. N/A N/A N/A self save_new_valid_exploration N/A self EXP_ID_5 N/A self bob_id N/A test_get_human_readable_contributors_summary N/A N/A self N/A N/A N/A contributors_summary N/A N/A self albert_id N/A self bob_id 10 13 N/A N/A N/A self assertEqual N/A N/A self ALBERT_NAME N/A self BOB_NAME N/A num_commits profile_picture_data_url 10 None N/A num_commits profile_picture_data_url 13 None N/A N/A summary_services get_human_readable_contributors_summary contributors_summary N/A contributors_summary N/A N/A self user_c_id N/A self user_d_id 1 2 N/A N/A N/A self assertEqual N/A N/A self USER_C_NAME N/A self USER_D_NAME N/A num_commits profile_picture_data_url 1 N/A self USER_C_PROFILE_PICTURE N/A num_commits profile_picture_data_url 2 None N/A N/A summary_services get_human_readable_contributors_summary contributors_summary N/A test_get_displayable_exp_summary_dicts_matching_ids N/A N/A self N/A N/A N/A displayable_summaries N/A N/A summary_services get_displayable_exp_summary_dicts_matching_ids N/A N/A self EXP_ID_1 N/A self EXP_ID_2 N/A self EXP_ID_3 N/A self EXP_ID_5 N/A expected_summary N/A status thumbnail_bg_color community_owned tags thumbnail_icon_url language_code human_readable_contributors_summary id category ratings title num_views objective public #05a69a False N/A /images/gallery/thumbnails/Lightbulb.svg N/A feconf DEFAULT_LANGUAGE_CODE N/A N/A self ALBERT_NAME N/A num_commits profile_picture_data_url 2 None N/A self EXP_ID_2 A category N/A N/A feconf get_empty_ratings Exploration 2 Albert title 0 An objective N/A N/A N/A self assertIn last_updated_msec N/A displayable_summaries N/A 0 N/A N/A N/A self assertDictContainsSubset expected_summary N/A displayable_summaries N/A 0 N/A test_get_public_and_filtered_private_summary_dicts_for_creator N/A N/A self N/A N/A N/A displayable_summaries N/A N/A summary_services get_displayable_exp_summary_dicts_matching_ids N/A N/A self EXP_ID_1 N/A self EXP_ID_2 N/A self EXP_ID_3 N/A self EXP_ID_5 editor_user_id N/A self albert_id N/A N/A N/A self assertEqual N/A len displayable_summaries 2 N/A N/A N/A self assertEqual N/A N/A displayable_summaries N/A 0 N/A id N/A self EXP_ID_1 N/A N/A N/A self assertEqual N/A N/A displayable_summaries N/A 1 N/A id N/A self EXP_ID_2 N/A N/A N/A rights_manager assign_role_for_exploration N/A self bob_id N/A self EXP_ID_5 N/A self albert_id N/A rights_manager ROLE_EDITOR N/A displayable_summaries N/A N/A summary_services get_displayable_exp_summary_dicts_matching_ids N/A N/A self EXP_ID_1 N/A self EXP_ID_2 N/A self EXP_ID_3 N/A self EXP_ID_5 editor_user_id N/A self albert_id N/A N/A N/A self assertEqual N/A len displayable_summaries 3 N/A N/A N/A self assertEqual N/A N/A displayable_summaries N/A 0 N/A status private N/A N/A N/A self assertEqual N/A N/A displayable_summaries N/A 0 N/A id N/A self EXP_ID_1 N/A N/A N/A self assertEqual N/A N/A displayable_summaries N/A 1 N/A status public N/A N/A N/A self assertEqual N/A N/A displayable_summaries N/A 1 N/A id N/A self EXP_ID_2 N/A N/A N/A self assertEqual N/A N/A displayable_summaries N/A 2 N/A status private N/A N/A N/A self assertEqual N/A N/A displayable_summaries N/A 2 N/A id N/A self EXP_ID_5 N/A N/A