def testRemoveGroup_02(self): os.mkdir(self.tempDir1) collection = IconsCollection(self.tempDir1) collection.addGroup(u'Новая группа') collection.removeGroup(u'Новая группа') self.assertEqual(collection.getGroups(), [])
def testRemoveGroup_02(self): os.mkdir(self.tempDir1) collection = IconsCollection(self.tempDir1) collection.addGroup('Новая группа') collection.removeGroup('Новая группа') self.assertEqual(collection.getGroups(), [])
def testRemoveGroup_04(self): files = [u'new.png', u'image_01.JPG'] fullPaths = [os.path.join(self.imagesDir, fname) for fname in files] os.mkdir(self.tempDir1) collection = IconsCollection(self.tempDir1) collection.addGroup(u'Новая группа') collection.addIcons(u'Новая группа', fullPaths) collection.removeGroup(u'Новая группа') self.assertEqual(collection.getGroups(), [])
def testRemoveGroup_01(self): os.mkdir(self.tempDir1) collection = IconsCollection(self.tempDir1) collection.addGroup(u'Новая группа') collection.addGroup(u'Другая группа') collection.removeGroup(u'Новая группа') self.assertEqual(collection.getGroups(), [u'Другая группа']) newcollection1 = IconsCollection(self.tempDir1) self.assertEqual(newcollection1.getGroups(), [u'Другая группа'])
def testRemoveGroup_04(self): files = ['new.png', 'image_01.JPG'] fullPaths = [os.path.join(self.imagesDir, fname) for fname in files] os.mkdir(self.tempDir1) collection = IconsCollection(self.tempDir1) collection.addGroup('Новая группа') collection.addIcons('Новая группа', fullPaths) collection.removeGroup('Новая группа') self.assertEqual(collection.getGroups(), [])
def testRemoveGroup_01(self): os.mkdir(self.tempDir1) collection = IconsCollection(self.tempDir1) collection.addGroup('Новая группа') collection.addGroup('Другая группа') collection.removeGroup('Новая группа') self.assertEqual(collection.getGroups(), ['Другая группа']) newcollection1 = IconsCollection(self.tempDir1) self.assertEqual(newcollection1.getGroups(), ['Другая группа'])