[Python-checkins] CVS: python/dist/src/Lib/test test_email.py,1.6,1.7
Barry Warsaw
bwarsaw@users.sourceforge.net
Tue, 09 Oct 2001 08:49:37 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv8997/Lib/test
Modified Files:
test_email.py
Log Message:
Add a test for get_all() returning failobj. msg_20.txt is a sample
message with multiple CC: fields, used in the get_all() test.
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_email.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_email.py 2001/10/04 18:18:37 1.6
--- test_email.py 2001/10/09 15:49:35 1.7
***************
*** 51,54 ****
--- 51,60 ----
# Test various aspects of the Message class's API
class TestMessageAPI(TestEmailBase):
+ def test_get_all(self):
+ eq = self.assertEqual
+ msg = self._msgobj('msg_20.txt')
+ eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org'])
+ eq(msg.get_all('xx', 'n/a'), 'n/a')
+
def test_get_charsets(self):
eq = self.assertEqual