def test_archive(self): # FIXME Compression schemes are not mimetypes, see /etc/mime.types mimetype = vfs.get_mimetype('handlers/test.tar.gz') self.assertEqual(mimetype, 'application/x-tgz')
def test_mimetype(self): mimetype = vfs.get_mimetype('tests/toto.txt') self.assertEqual(mimetype, 'application/x-not-regular-file')
def test11_get_mimetype(self): mimetype = vfs.get_mimetype('tests/hello.txt') self.assertEqual(mimetype, 'text/plain')