]> granicus.if.org Git - python/commitdiff
test_multipart_one_part(): Idempotency test case for a multipart/*
authorBarry Warsaw <barry@python.org>
Sun, 27 Jan 2002 06:48:47 +0000 (06:48 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 27 Jan 2002 06:48:47 +0000 (06:48 +0000)
with only one subpart.

Lib/test/test_email.py

index 5be7e95d9a9d044129942a23a2ff320f6006d049..7105f7d4b31b315cb2f57f03aaa65d7a14106b01 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2001 Python Software Foundation
+# Copyright (C) 2001,2002 Python Software Foundation
 # email package unit tests
 
 import os
@@ -790,6 +790,10 @@ class TestIdempotent(unittest.TestCase):
         msg, text = self._msgobj('msg_21.txt')
         self._idempotent(msg, text)
 
+    def test_multipart_one_part(self):
+        msg, text = self._msgobj('msg_23.txt')
+        self._idempotent(msg, text)
+
     def test_content_type(self):
         eq = self.assertEquals
         # Get a message object and reset the seek pointer for other tests