a3483f
--- Python-3.1.1/Lib/email/test/test_email.py.remove_mimeaudio_tests	2009-10-27 14:31:09.483539561 -0400
a3483f
+++ Python-3.1.1/Lib/email/test/test_email.py	2009-10-27 14:31:27.663548053 -0400
a3483f
@@ -926,52 +926,6 @@ Blah blah blah
a3483f
 
a3483f
 
a3483f
 
a3483f
-# Test the basic MIMEAudio class
a3483f
-class TestMIMEAudio(unittest.TestCase):
a3483f
-    def setUp(self):
a3483f
-        # Make sure we pick up the audiotest.au that lives in email/test/data.
a3483f
-        # In Python, there's an audiotest.au living in Lib/test but that isn't
a3483f
-        # included in some binary distros that don't include the test
a3483f
-        # package.  The trailing empty string on the .join() is significant
a3483f
-        # since findfile() will do a dirname().
a3483f
-        datadir = os.path.join(os.path.dirname(landmark), 'data', '')
a3483f
-        with open(findfile('audiotest.au', datadir), 'rb') as fp:
a3483f
-            self._audiodata = fp.read()
a3483f
-        self._au = MIMEAudio(self._audiodata)
a3483f
-
a3483f
-    def test_guess_minor_type(self):
a3483f
-        self.assertEqual(self._au.get_content_type(), 'audio/basic')
a3483f
-
a3483f
-    def test_encoding(self):
a3483f
-        payload = self._au.get_payload()
a3483f
-        self.assertEqual(base64.decodebytes(payload), self._audiodata)
a3483f
-
a3483f
-    def test_checkSetMinor(self):
a3483f
-        au = MIMEAudio(self._audiodata, 'fish')
a3483f
-        self.assertEqual(au.get_content_type(), 'audio/fish')
a3483f
-
a3483f
-    def test_add_header(self):
a3483f
-        eq = self.assertEqual
a3483f
-        unless = self.assertTrue
a3483f
-        self._au.add_header('Content-Disposition', 'attachment',
a3483f
-                            filename='audiotest.au')
a3483f
-        eq(self._au['content-disposition'],
a3483f
-           'attachment; filename="audiotest.au"')
a3483f
-        eq(self._au.get_params(header='content-disposition'),
a3483f
-           [('attachment', ''), ('filename', 'audiotest.au')])
a3483f
-        eq(self._au.get_param('filename', header='content-disposition'),
a3483f
-           'audiotest.au')
a3483f
-        missing = []
a3483f
-        eq(self._au.get_param('attachment', header='content-disposition'), '')
a3483f
-        unless(self._au.get_param('foo', failobj=missing,
a3483f
-                                  header='content-disposition') is missing)
a3483f
-        # Try some missing stuff
a3483f
-        unless(self._au.get_param('foobar', missing) is missing)
a3483f
-        unless(self._au.get_param('attachment', missing,
a3483f
-                                  header='foobar') is missing)
a3483f
-
a3483f
-
a3483f
-
a3483f
 # Test the basic MIMEImage class
a3483f
 class TestMIMEImage(unittest.TestCase):
a3483f
     def setUp(self):