Example #1
0
  def testSendWithInvalidSender(self):
    util._Send(
        ['*****@*****.**'], 'subject', 'body', '', '', '')

    mail_stub = self.testbed.get_stub('mail')
    self.assertEqual(0, len(mail_stub.get_sent_messages()))
 def testSendWithInvalidSender(self):
   self.mox.StubOutWithMock(util.settings, 'DEFAULT_EMAIL_SENDER', '')
   util._Send(
       ['*****@*****.**'], 'subject', 'body', '', '', '')
Example #3
0
  def testSendWithInvalidSender(self):
    util._Send(
        ['*****@*****.**'], 'subject', 'body', '', '', '')

    mail_stub = self.testbed.get_stub('mail')
    self.assertEqual(0, len(mail_stub.get_sent_messages()))
Example #4
0
 def testSendWithInvalidSender(self):
     self.mox.StubOutWithMock(util.settings, 'DEFAULT_EMAIL_SENDER', '')
     util._Send(['*****@*****.**'], 'subject', 'body', '', '', '')