Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign TupleStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Return NameLoad orelse If CompareEq NameLoad Str body Return Str Return Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr With NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str AttributeLoad NameLoad attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str AttributeLoad NameLoad attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str AttributeLoad NameLoad attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Tests for Email-related jobs. N/A datetime N/A types core.domain email_jobs_one_off core.platform models core.tests test_utils N/A feconf N/A N/A email_models N/A N/A N/A models Registry import_models N/A N/A N/A models NAMES email N/A taskqueue_services N/A N/A N/A models Registry import_taskqueue_services EmailHashRegenerationOneOffJobTests N/A N/A test_utils GenericTestBase N/A N/A Tests for the one-off update hash job. _run_one_off_job N/A N/A self N/A N/A N/A Runs the one-off MapReduce job. N/A job_id N/A N/A N/A email_jobs_one_off EmailHashRegenerationOneOffJob create_new N/A N/A N/A N/A email_jobs_one_off EmailHashRegenerationOneOffJob enqueue job_id N/A N/A N/A self assertEqual N/A N/A self count_jobs_in_taskqueue queue_name N/A taskqueue_services QUEUE_NAME_DEFAULT 1 N/A N/A N/A self process_and_flush_pending_tasks N/A test_hashes_get_generated N/A N/A self N/A N/A _generate_hash_for_tests N/A N/A cls recipient_id email_subject email_body N/A N/A N/A N/A recipient_id recipient_id1 N/A N/A None N/A N/A N/A recipient_id recipient_id2 N/A N/A N/A Email Hash N/A N/A generate_constant_hash_ctx N/A N/A self swap N/A email_models SentEmailModel _generate_hash N/A N/A types MethodType _generate_hash_for_tests N/A email_models SentEmailModel N/A generate_constant_hash_ctx N/A N/A N/A N/A N/A email_models SentEmailModel create recipient_id1 recipient@email.com sender_id sender@email.com N/A feconf EMAIL_INTENT_SIGNUP Email Subject Email Body N/A N/A N/A datetime datetime utcnow N/A N/A N/A N/A email_models SentEmailModel create recipient_id2 recipient@email.com sender_id sender@email.com N/A feconf EMAIL_INTENT_SIGNUP Email Subject Email Body N/A N/A N/A datetime datetime utcnow N/A N/A N/A N/A email_models SentEmailModel create recipient_id3 recipient@email.com sender_id sender@email.com N/A feconf EMAIL_INTENT_SIGNUP Email Subject Email Body N/A N/A N/A datetime datetime utcnow N/A all_models N/A N/A N/A N/A N/A email_models SentEmailModel get_all fetch N/A N/A N/A self assertEqual N/A len all_models 3 N/A model all_models N/A N/A N/A N/A model recipient_id recipient_id1 N/A N/A N/A N/A self assertIsNone N/A model email_hash N/A N/A N/A N/A model recipient_id recipient_id2 N/A N/A N/A N/A self assertEqual N/A len N/A model email_hash 0 N/A N/A N/A self _run_one_off_job N/A all_models N/A N/A N/A N/A N/A email_models SentEmailModel get_all fetch N/A N/A N/A self assertEqual N/A len all_models 3 N/A all_models N/A N/A N/A N/A N/A email_models SentEmailModel get_all fetch N/A model all_models N/A N/A N/A N/A self assertIsNotNone N/A model email_hash N/A N/A