def test_addFav_duplicates_list(self): dataobject = DataObject() dataobject.addFav("xxx", "aaa") self.assertEqual(dataobject.undoStack.count(), 1) dataobject.addFav("xxx", ["aaa", "bbb"]) self.assertEqual(dataobject.undoStack.count(), 2)
def test_addFav_duplicates(self): dataobject = DataObject() dataobject.addFavGroup("xxx") self.assertEqual(len(dataobject.favs.favsList), 1) dataobject.addFav("xxx", "aaa") self.assertEqual(dataobject.undoStack.count(), 2) dataobject.addFav("xxx", "aaa") self.assertEqual(dataobject.undoStack.count(), 2)