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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4