Example #1
0
 def test_get_addr_line_no_name(self):
     ms = MessageSender(MagicMock(), MagicMock())
     r = ms.get_addr_line('', '*****@*****.**')
     self.assertEqual('*****@*****.**', r)
Example #2
0
 def test_get_addr_line_no_name(self):
     ms = MessageSender(MagicMock(), MagicMock())
     r = ms.get_addr_line('', '*****@*****.**')
     self.assertEqual('*****@*****.**', r)
Example #3
0
 def test_get_addr_line_unicode(self):
     ms = MessageSender(MagicMock(), MagicMock())
     r = ms.get_addr_line('Example support\u203d', '*****@*****.**')
     self.assertEqual('=?utf-8?q?Example_support=E2=80=BD?= <*****@*****.**>', r)
Example #4
0
 def test_get_addr_line_unicode(self):
     ms = MessageSender(MagicMock(), MagicMock())
     r = ms.get_addr_line('Example support\u203d', '*****@*****.**')
     self.assertEqual(
         '=?utf-8?q?Example_support=E2=80=BD?= <*****@*****.**>', r)