def test_is_builtin_09(self): path_main = 'tmp' controller = IconController(path_main) fname = os.path.join(path_main, 'абыр', 'абырвалг', ICONS_STD_PREFIX + 'icon.png') self.assertTrue(controller.is_builtin_icon(fname))
def test_is_builtin_08(self): path_main = u'tmp' controller = IconController(path_main) fname = os.path.join(path_main, u'qqq', ICONS_STD_PREFIX + u'icon.png') self.assertTrue(controller.is_builtin_icon(fname))
def test_is_builtin_08(self): path_main = 'tmp' controller = IconController(path_main) fname = os.path.join(path_main, 'qqq', ICONS_STD_PREFIX + 'icon.png') self.assertTrue(controller.is_builtin_icon(fname))
def _save(self): iconController = IconController(self._builtin_icons_path) icons_for_config = [] for icon in self._recentIcons: if iconController.is_builtin_icon(icon): icon = os.path.relpath(icon, self._builtin_icons_path) icons_for_config.append(icon) self._recentIconsConfig.value = icons_for_config
def test_is_builtin_04(self): path_main = u'tmp' controller = IconController(path_main) fname = os.path.join(path_main, u'icon.png') self.assertFalse(controller.is_builtin_icon(fname))
def test_is_builtin_04(self): path_main = 'tmp' controller = IconController(path_main) fname = os.path.join(path_main, 'icon.png') self.assertFalse(controller.is_builtin_icon(fname))