Beispiel #1
0
    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)
Beispiel #2
0
    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)