The mailcap tests rely on a file called mailcap.txt - presumably this was in the python core.
...F...E.
======================================================================
ERROR: test_readmailcapfile (tests.test_mailcap.HelperFunctionTest.test_readmailcapfile)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mailcap/tests/test_mailcap.py", line 96, in test_readmailcapfile
with open(MAILCAPFILE, 'r') as mcf:
~~~~^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'mailcap.txt'
======================================================================
FAIL: test_mock_getcaps (tests.test_mailcap.GetcapsTest.test_mock_getcaps)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mailcap/tests/test_mailcap.py", line 148, in test_mock_getcaps
self.assertDictEqual(caps, MAILCAPDICT)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
AssertionError: {} != {'application/x-movie': [{'compose': 'movi[1452 chars] 8}]}
Diff is 2367 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------
Ran 9 tests in 0.002s
The
mailcap
tests rely on a file calledmailcap.txt
- presumably this was in the python core.