We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf9b25 commit 9500cb3Copy full SHA for 9500cb3
Lib/test/test_mimetypes.py
@@ -470,6 +470,14 @@ def test_parse_args(self):
470
self.assertFalse(args.lenient)
471
self.assertEqual(args.type, ["foo.pic"])
472
473
+ def test_multiple_inputs(self):
474
+ result = mimetypes._main(shlex.split("foo.pdf foo.png"))
475
+ self.assertEqual(
476
+ result,
477
+ "type: application/pdf encoding: None\n"
478
+ "type: image/png encoding: None"
479
+ )
480
+
481
def test_invocation(self):
482
for command, expected in [
483
("-l -e image/jpg", ".jpg"),
0 commit comments