def test_qgis_translations(self):
        parent_path = os.path.join(__file__, os.path.pardir, os.path.pardir)
        dir_path = os.path.abspath(parent_path)
        file_path = os.path.join(
            dir_path, 'i18n', 'af.qm')
        translator = QTranslator()
        translator.load(file_path)
        QCoreApplication.installTranslator(translator)

        expected_message = 'Goeie more'
        real_message = QCoreApplication.translate("@default", 'Good morning')
        self.assertEqual(real_message, expected_message)
Get select type as defined in FORMATS.
dataset/ETHPy150Open BergWerkGIS/QGIS-CKAN-Browser/CKAN-Browser/test/test_translations.py/SafeTranslationsTest.test_qgis_translations--crossover with--dataset/ETHPy150Open stephenmcd/filebrowser-safe/filebrowser_safe/functions.py/is_selectable