[Python-checkins] python/dist/src/Lib/email/test test_email.py,1.49,1.50
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
Wed, 07 May 2003 20:34:04 -0700
Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1:/tmp/cvs-serv26895
Modified Files:
test_email.py
Log Message:
A couple of new parsedate test cases.
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** test_email.py 24 Apr 2003 15:58:47 -0000 1.49
--- test_email.py 8 May 2003 03:34:01 -0000 1.50
***************
*** 1878,1881 ****
--- 1878,1891 ----
Utils.parsedate('Wed, 3 Apr 2002 14:58:26 +0800'))
+ def test_parsedate_no_dayofweek(self):
+ eq = self.assertEqual
+ eq(Utils.parsedate_tz('25 Feb 2003 13:47:26 -0800'),
+ (2003, 2, 25, 13, 47, 26, 0, 0, 0, -28800))
+
+ def test_parsedate_compact_no_dayofweek(self):
+ eq = self.assertEqual
+ eq(Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800'),
+ (2003, 2, 5, 13, 47, 26, 0, 0, 0, -28800))
+
def test_parseaddr_empty(self):
self.assertEqual(Utils.parseaddr('<>'), ('', ''))