Home | Trees | Indices | Help |
|
---|
|
1 import unittest, doctest 2 import pyzmail 3 from pyzmail.generate import * 46 918 19 # Add doctest 24 3111 """test format_addresse""" 12 self.assertEqual('foo@example.com', str(format_addresses([ 'foo@example.com', ]))) 13 self.assertEqual('Foo <foo@example.com>', str(format_addresses([ ('Foo', 'foo@example.com'), ]))) 14 # notice the space around the comma 15 self.assertEqual('foo@example.com , bar@example.com', str(format_addresses([ 'foo@example.com', 'bar@example.com']))) 16 # notice the space around the comma 17 self.assertEqual('Foo <foo@example.com> , Bar <bar@example.com>', str(format_addresses([ ('Foo', 'foo@example.com'), ( 'Bar', 'bar@example.com')])))
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 3 19:15:58 2013 | http://epydoc.sourceforge.net |