def test_remove_icon_02(self): path_main = u'tmp' self._page.params.iconOption.value = u'icon.png' controller = IconController(path_main) controller.remove_icon(self._page) # Checking built-in icon self.assertEqual(self._page.params.iconOption.value, u'')
def test_remove_icon_02(self): path_main = 'tmp' self._page.params.iconOption.value = 'icon.png' controller = IconController(path_main) controller.remove_icon(self._page) # Checking built-in icon self.assertEqual(self._page.params.iconOption.value, '')
def test_remove_icon_event(self): path_main = u'tmp' self._page.params.iconOption.value = u'icon.png' controller = IconController(path_main) self.assertEqual(self.eventcount, 0) controller.remove_icon(self._page) self.assertEqual(self.eventcount, 1) controller.remove_icon(self._page) self.assertEqual(self.eventcount, 2)
def test_remove_icon_event(self): path_main = 'tmp' self._page.params.iconOption.value = 'icon.png' controller = IconController(path_main) self.assertEqual(self.eventcount, 0) controller.remove_icon(self._page) self.assertEqual(self.eventcount, 1) controller.remove_icon(self._page) self.assertEqual(self.eventcount, 2)
def test_remove_icon_01(self): path_main = u'tmp' # Create icons files in the page folder for extension in ICONS_EXTENSIONS: icon_fname = os.path.join(self._page.path, PAGE_ICON_NAME + u'.' + extension) self._create_file(icon_fname) controller = IconController(path_main) controller.remove_icon(self._page) # Checking custom icon files for extension in ICONS_EXTENSIONS: icon_fname = os.path.join(self._page.path, PAGE_ICON_NAME + u'.' + extension) self.assertFalse(os.path.exists(icon_fname), icon_fname)
def test_remove_icon_01(self): path_main = 'tmp' # Create icons files in the page folder for extension in ICONS_EXTENSIONS: icon_fname = os.path.join(self._page.path, PAGE_ICON_NAME + '.' + extension) self._create_file(icon_fname) controller = IconController(path_main) controller.remove_icon(self._page) # Checking custom icon files for extension in ICONS_EXTENSIONS: icon_fname = os.path.join(self._page.path, PAGE_ICON_NAME + '.' + extension) self.assertFalse(os.path.exists(icon_fname), icon_fname)