Module ImportFrom alias Import alias Import alias Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A __future__ absolute_import N/A mock N/A os N/A unittest N/A N/A N/A os environ N/A CLAY_CONFIG config.json clay config mail N/A log N/A N/A config get_logger clay.tests.mail TestMail N/A N/A unittest TestCase N/A test_sendmail N/A N/A self mock_SMTP N/A N/A N/A mock_SMTP_instance N/A mock_SMTP return_value N/A mailto fake@email.com N/A subject This is a subject N/A message This is a message N/A N/A N/A mail sendmail mailto subject message N/A N/A args kwargs N/A N/A mock_SMTP_instance sendmail call_args N/A from_header N/A N/A config get smtp.from N/A N/A N/A self assertEqual from_header N/A args N/A 0 N/A N/A N/A self assertIn mailto N/A args N/A 1 N/A N/A N/A self assertIn N/A To: %s mailto N/A args N/A 2 N/A N/A N/A self assertIn N/A From: %s from_header N/A args N/A 2 N/A N/A N/A self assertIn N/A Subject: %s subject N/A args N/A 2 N/A N/A N/A self assertIn Content-Type: text/html N/A args N/A 2 N/A N/A N/A mock patch smtplib.SMTP test_sendmail_with_other_smtpconfig N/A N/A self mock_SMTP N/A N/A N/A mock_SMTP_instance N/A mock_SMTP return_value N/A mailto otherfake@email.com N/A subject This is another subject N/A message This is another message N/A N/A N/A mail sendmail mailto subject message smtpconfig N/A N/A config get othersmtp N/A N/A args kwargs N/A N/A mock_SMTP_instance sendmail call_args N/A from_header N/A N/A config get othersmtp.from N/A N/A N/A self assertEqual from_header N/A args N/A 0 N/A N/A N/A self assertIn mailto N/A args N/A 1 N/A N/A N/A self assertIn N/A To: %s mailto N/A args N/A 2 N/A N/A N/A self assertIn N/A From: %s from_header N/A args N/A 2 N/A N/A N/A self assertIn N/A Subject: %s subject N/A args N/A 2 N/A N/A N/A self assertIn Content-Type: text/html N/A args N/A 2 N/A N/A N/A mock patch smtplib.SMTP N/A