Skip to content

Commit 9500cb3

Browse files
committed
test_multiple_inputs
1 parent ebf9b25 commit 9500cb3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Lib/test/test_mimetypes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,14 @@ def test_parse_args(self):
470470
self.assertFalse(args.lenient)
471471
self.assertEqual(args.type, ["foo.pic"])
472472

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+
473481
def test_invocation(self):
474482
for command, expected in [
475483
("-l -e image/jpg", ".jpg"),

0 commit comments

Comments
 (0)