def test_extra_mimetypes(self):
        mimeview = Mimeview(self.env)
        self.assertIn(mimeview.get_mimetype('file.ini'),
                      ('text/x-ini; charset=utf-8',
                       'text/inf; charset=utf-8'))  # Pygment 2.1+
        self.assertIn(mimeview.get_mimetype('file.cfg'),
                      ('text/x-ini; charset=utf-8',
                       'text/inf; charset=utf-8'))  # Pygment 2.1+
        self.assertEqual('text/x-ini; charset=utf-8',
                         mimeview.get_mimetype('file.text/x-ini'))
The text/x-ini mimetype is normally not known by Trac, but
dataset/ETHPy150Open edgewall/trac/trac/mimeview/tests/pygments.py/PygmentsRendererTestCase.test_extra_mimetypes