Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore Str With Call AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assign NameStore Str Assign NameStore ListComp BinOpAdd NameLoad NameLoad comprehension NameStore ListLoad Str Str Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str NameLoad NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore ListComp BinOpAdd NameLoad NameLoad comprehension NameStore ListLoad Str Str Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str NameLoad NameLoad Assign NameStore Str Assign NameStore ListComp BinOpAdd NameLoad NameLoad comprehension NameStore ListLoad Str Str Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad With Call AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore ListLoad Str Str Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A Tests for grr.lib.email_alerts. N/A mock grr.lib email_alerts grr.lib flags grr.lib test_lib grr.lib.rdfvalues standard rdf_standard SendEmailTests N/A N/A test_lib GRRBaseTest N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super SendEmailTests self setUp N/A N/A N/A N/A self mail_stubber Stop N/A testSplitEmailsAndAppendEmailDomain N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A email_alerts EMAIL_ALERTER SplitEmailsAndAppendEmailDomain N/A N/A testSendEmail N/A N/A self N/A N/A N/A N/A self smtp_patcher N/A N/A mock patch smtplib.SMTP N/A N/A self mock_smtp N/A N/A N/A self smtp_patcher start N/A N/A N/A testdomain test.com N/A N/A N/A test_lib ConfigOverrider N/A Logging.domain testdomain N/A N/A smtp_conn N/A N/A self mock_smtp return_value N/A to_address testto@example.com N/A from_address me@example.com N/A subject test N/A message N/A N/A N/A N/A email_alerts EMAIL_ALERTER SendEmail to_address from_address subject message N/A N/A c_from c_to msg N/A N/A N/A smtp_conn sendmail call_args N/A 0 N/A N/A N/A self assertEqual from_address c_from N/A N/A N/A self assertEqual N/A to_address c_to N/A N/A N/A self assertFalse N/A CC: msg N/A to_address N/A N/A rdf_standard DomainEmailAddress N/A testto@%s testdomain N/A from_address me@example.com N/A subject test N/A message N/A N/A N/A N/A email_alerts EMAIL_ALERTER SendEmail to_address from_address subject message N/A N/A c_from c_to msg N/A N/A N/A smtp_conn sendmail call_args N/A 0 N/A N/A N/A self assertEqual from_address c_from N/A N/A N/A self assertEqual N/A to_address c_to N/A N/A N/A self assertFalse N/A CC: msg N/A to_address testto,abc,def N/A to_address_expected N/A N/A x testdomain N/A x N/A testto@ abc@ def@ N/A cc_address testcc N/A N/A N/A N/A email_alerts EMAIL_ALERTER SendEmail to_address from_address subject message cc_addresses cc_address N/A N/A c_from c_to message N/A N/A N/A smtp_conn sendmail call_args N/A 0 N/A N/A N/A self assertEqual from_address c_from N/A N/A N/A self assertEqual to_address_expected c_to N/A N/A N/A self assertTrue N/A N/A CC: testcc@%s testdomain message N/A to_address N/A N/A N/A rdf_standard DomainEmailAddress N/A testto@%s testdomain N/A N/A rdf_standard DomainEmailAddress N/A abc@%s testdomain N/A N/A rdf_standard DomainEmailAddress N/A def@%s testdomain N/A to_address_expected N/A N/A x testdomain N/A x N/A testto@ abc@ def@ N/A cc_address testcc N/A N/A N/A N/A email_alerts EMAIL_ALERTER SendEmail to_address from_address subject message cc_addresses cc_address N/A N/A c_from c_to message N/A N/A N/A smtp_conn sendmail call_args N/A 0 N/A N/A N/A self assertEqual from_address c_from N/A N/A N/A self assertEqual to_address_expected c_to N/A N/A N/A self assertTrue N/A N/A CC: testcc@%s testdomain message N/A to_address testto,abc,def N/A to_address_expected N/A N/A x testdomain N/A x N/A testto@ abc@ def@ N/A cc_address testcc,testcc2 N/A email_msg_id 123123 N/A N/A N/A N/A email_alerts EMAIL_ALERTER SendEmail to_address from_address subject message cc_addresses cc_address message_id email_msg_id N/A N/A c_from c_to message N/A N/A N/A smtp_conn sendmail call_args N/A 0 N/A N/A N/A self assertEqual from_address c_from N/A N/A N/A self assertEqual to_address_expected c_to N/A N/A N/A self assertTrue N/A N/A CC: testcc@%s,testcc2@%s N/A testdomain testdomain message N/A N/A N/A self assertTrue N/A Message-ID: %s email_msg_id N/A N/A N/A test_lib ConfigOverrider N/A Logging.domain None N/A N/A to_address N/A testto@localhost hij N/A N/A rdf_standard DomainEmailAddress klm@localhost N/A to_address_expected N/A testto@localhost hij@localhost klm@localhost N/A N/A N/A N/A email_alerts EMAIL_ALERTER SendEmail to_address from_address subject message cc_addresses cc_address N/A N/A c_from c_to message N/A N/A N/A smtp_conn sendmail call_args N/A 0 N/A N/A N/A self assertEqual from_address c_from N/A N/A N/A self assertEqual to_address_expected c_to N/A N/A N/A self assertTrue N/A N/A CC: testcc@%s,testcc2@%s N/A testdomain testdomain message N/A N/A N/A N/A N/A self smtp_patcher stop N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A test_lib GrrTestProgram argv argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags StartMain main