def test_add_recipient(self): from pyramid_mailer.message import Message msg = Message("testing") msg.add_recipient("*****@*****.**") self.assert_(msg.recipients == ["*****@*****.**"])
def test_add_recipient(self): from pyramid_mailer.message import Message msg = Message("testing") msg.add_recipient("*****@*****.**") self.assert_(msg.recipients == ["*****@*****.**"])
def test_recipients_properly_initialized(self): from pyramid_mailer.message import Message msg = Message(subject="subject") self.assert_(msg.recipients == []) msg2 = Message(subject="subject") msg2.add_recipient("*****@*****.**") self.assert_(len(msg.recipients) == 0) msg3 = Message(subject="subject") msg3.add_recipient("*****@*****.**") self.assert_(len(msg.recipients) == 0)
def test_recipients_properly_initialized(self): from pyramid_mailer.message import Message msg = Message(subject="subject") self.assert_(msg.recipients == []) msg2 = Message(subject="subject") msg2.add_recipient("*****@*****.**") self.assert_(len(msg.recipients) == 0) msg3 = Message(subject="subject") msg3.add_recipient("*****@*****.**") self.assert_(len(msg.recipients) == 0)