test_mimetype: Refactor test to use pytest.mark.parametrize
It's simplifying reading and more consistent with other similar tests