Add tests for bug #478115, parsedate_tz() IndexError when a Date:
field exists with an empty value.
diff --git a/Lib/test/test_email.py b/Lib/test/test_email.py
index 6a66199..37ddc30 100644
--- a/Lib/test/test_email.py
+++ b/Lib/test/test_email.py
@@ -937,6 +937,9 @@
                 toff = time.timezone
             self.assertEqual(offset, toff)
 
+    def test_parsedate(self):
+        self.assertEqual(Utils.parsedate(''), None)
+
 
 
 # Test the iterator/generators
diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py
index ab1746b..cc6e27b 100644
--- a/Lib/test/test_rfc822.py
+++ b/Lib/test/test_rfc822.py
@@ -118,6 +118,14 @@
              ])
 
         self.check(
+            'To: Some One <someone@dom.ain>\n'
+            'From: Anudder Persin <subuddy.else@dom.ain>\n'
+            'Date:\n'
+            '\n'
+            'test',
+            [('Some One', 'someone@dom.ain')])
+
+        self.check(
             'To: person@dom.ain (User J. Person)\n\n',
             [('User J. Person', 'person@dom.ain')])