def testInsertCategoryName1WeightLong(self): aCategory = category() result = aCategory.insertCategory('A', ((2**28) - 1)) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('A')
def testInsertCategoryExists(self): aCategory = category() result = aCategory.insertCategory('Kxtygzry1', 21) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzry1')
def testInsertCategoryName100Weight0(self): aCategory = category() result = aCategory.insertCategory('A' * 100, 0) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('A' * 100)
def testInsertCategoryWeight0(self): aCategory = category() result = aCategory.insertCategory('Kxtygzrda',0) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testCicloIndirecto(self): # Insertamos Producto aBacklog = backlog() aBacklog.insertBacklog('Podn fjdd.', 'ODJdbeidbww', 1) searchBacklog = aBacklog.findName('Podn fjdd.') idFound0 = searchBacklog[0].BL_idBacklog # Insertamos la accion aAcc = accions() aAcc.insertAccion('cinrohbwidia', idFound0) search = aAcc.searchAccion('cinrohbwidia', idFound0) idFound = search[0].AC_idAccion # Insertamos la historia aHist = userHistory() aHist.insertUserHistory('BIEEIEB1', 0, 1, idFound, idFound0, 1, True, TODAY) searchHist = aHist.searchUserHistory('BIEEIEB1', idFound0) idFound1 = searchHist[0].UH_idUserHistory # Insertamos la categoria aCategory = category() aCategory.insertCategory('wofhweoifh', 1) # Insertamos la tarea 1 aTarea = task() aTarea.insertTask('dwidjw', 1, 1, idFound1, True, TODAY) searchTask1 = aTarea.searchTask('dwidjw') idprimera = searchTask1[0].HW_idTask # Insertamos la tarea 2 bTarea = task() bTarea.insertTask('dfghj', 2, 2, idFound1, True, TODAY) searchTask2 = bTarea.searchTask('dfghj') idsegunda = searchTask2[0].HW_idTask # Insertamos la tarea 3 cTarea = task() cTarea.insertTask('dfghj2', 3, 3, idFound1, True, TODAY) searchTask3 = cTarea.searchTask('dfghj2') idtercera = searchTask3[0].HW_idTask #Insertamos la precedencia aPrecedence = precedence() aPrecedence.insertPrecedence(idprimera, idsegunda, idFound0) aPrecedence.insertPrecedence(idsegunda, idtercera, idFound0) self.assertEqual( (aPrecedence.insertPrecedence(idtercera, idprimera, idFound0)), None) # Eliminamos la precedencia, tarea, categoria, historia, accion y producto aPrecedence.deletePrecedence(idprimera, idsegunda) aPrecedence.deletePrecedence(idsegunda, idtercera) aTarea.deleteTask('dwidjw') bTarea.deleteTask('dfghj') bTarea.deleteTask('dfghj2') aCategory.deleteCategory('wofhweoifh') aHist.deleteUserHistory(idFound1) aAcc.deleteAccion('cinrohbwidia', idFound0) aBacklog.deleteProduct('Podn fjdd.')
def testInsertCategoryName100Weight0(self): aCategory = category() result = aCategory.insertCategory('A'*100,0) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('A'*100)
def testDeleteCategoryNameStringArray(self): aCategory = category() aCategory.insertCategory('[]',1) # Eliminando la categoria result = aCategory.deleteCategory('[]') self.assertTrue(result)
def testDeleteCategoryNameDictionary(self): aCategory = category() aCategory.insertCategory({},1) # Eliminando la categoria result = aCategory.deleteCategory({}) self.assertFalse(result)
def testDeleteCategoryNameArray(self): aCategory = category() aCategory.insertCategory([],1) # Eliminando la categoria result = aCategory.deleteCategory([]) self.assertFalse(result)
def testDeleteCategoryNameEnie(self): aCategory = category() aCategory.insertCategory('ñ',1) # Eliminando la categoria result = aCategory.deleteCategory('ñ') self.assertTrue(result)
def testInsertCategoryName1WeightLong(self): aCategory = category() result = aCategory.insertCategory('A',((2**28)-1)) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('A')
def testDeleteCategoryNameNumber(self): aCategory = category() aCategory.insertCategory(88,1) # Eliminando la categoria result = aCategory.deleteCategory(88) self.assertFalse(result)
def testDeleteCategoryName101(self): aCategory = category() aCategory.insertCategory('C'*101,1) # Eliminando la categoria result = aCategory.deleteCategory('C'*101) self.assertFalse(result)
def testDeleteCategoryNameLong(self): aCategory = category() aCategory.insertCategory('C'*((2**28)-1),1) # Eliminando la categoria result = aCategory.deleteCategory('C'*((2**28)-1)) self.assertFalse(result)
def testDeleteCategoryExist(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) # Eliminando la categoria result = aCategory.deleteCategory('Kxtygzrda') self.assertTrue(result)
def testDeleteCategoryName50(self): aCategory = category() aCategory.insertCategory('C'*50,1) # Eliminando la categoria result = aCategory.deleteCategory('C'*50) self.assertTrue(result)
def testInsertCategory100Exists(self): aCategory = category() result = aCategory.insertCategory('A' * 100, 2) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('A' * 100)
def testDeleteCategoryNameNumber(self): aCategory = category() aCategory.insertCategory(88, 1) # Eliminando la categoria result = aCategory.deleteCategory(88) self.assertFalse(result)
def testDeleteCategoryNameArray(self): aCategory = category() aCategory.insertCategory([], 1) # Eliminando la categoria result = aCategory.deleteCategory([]) self.assertFalse(result)
def testDeleteCategoryNameLong(self): aCategory = category() aCategory.insertCategory('C' * ((2**28) - 1), 1) # Eliminando la categoria result = aCategory.deleteCategory('C' * ((2**28) - 1)) self.assertFalse(result)
def testDeleteCategoryNameEnie(self): aCategory = category() aCategory.insertCategory('ñ', 1) # Eliminando la categoria result = aCategory.deleteCategory('ñ') self.assertTrue(result)
def testDeleteCategoryName101(self): aCategory = category() aCategory.insertCategory('C' * 101, 1) # Eliminando la categoria result = aCategory.deleteCategory('C' * 101) self.assertFalse(result)
def testDeleteCategoryName50(self): aCategory = category() aCategory.insertCategory('C' * 50, 1) # Eliminando la categoria result = aCategory.deleteCategory('C' * 50) self.assertTrue(result)
def testDeleteCategoryExist(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) # Eliminando la categoria result = aCategory.deleteCategory('Kxtygzrda') self.assertTrue(result)
def testDeleteCategoryNameStringArray(self): aCategory = category() aCategory.insertCategory('[]', 1) # Eliminando la categoria result = aCategory.deleteCategory('[]') self.assertTrue(result)
def testDeleteCategoryNameDictionary(self): aCategory = category() aCategory.insertCategory({}, 1) # Eliminando la categoria result = aCategory.deleteCategory({}) self.assertFalse(result)
def testInsertCategoryWeight0(self): aCategory = category() result = aCategory.insertCategory('Kxtygzrda', 0) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testInsertCategory100Exists(self): aCategory = category() result = aCategory.insertCategory('A'*100,2) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('A'*100)
def testInsertCategoryExists(self): aCategory = category() result = aCategory.insertCategory('Kxtygzry1',21) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzry1')
def testUpdateCategoryName100Newname0Weight0(self): aCategory = category() aCategory.insertCategory('C'*100,1) result = aCategory.updateCategory('C'*100, '', 0) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('C'*100)
def testUpdateCategoryWeightLong(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.updateCategory('Kxtygzrda', 'Nxyvz kxtygzrya', ((2**28)-1)) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('Nxyvz kxtygzrya')
def testUpdateCategoryNewnameLong(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.updateCategory('Kxtygzrda', 'N'*((2**28)-1), 2) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryNewname101(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.updateCategory('C', 'N'*101, 2) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryNameNewname100(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.updateCategory('Kxtygzrda', 'N'*100, 2) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('N'*100)
def testUpdateCategoryName100Newname(self): aCategory = category() aCategory.insertCategory('C'*100,1) result = aCategory.updateCategory('C'*100, 'Nxyvz kxtygzrya', 2) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('Nxyvz kxtygzrya')
def testSearchIdCategoryDictionary(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.searchIdCategory({}) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testSearchIdCategoryNotExist(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.searchIdCategory(99) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryNameNewnameNumberWeight(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.updateCategory('Kxtygzrda', 21, 3) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryName100NewnameLongWeightLong1(self): aCategory = category() aCategory.insertCategory('C'*100,1) result = aCategory.updateCategory('C', 'N'*((2**28)-1), 1) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('C'*100)
def testInsertCategoryEquals(self): aCategory = category() result = aCategory.insertCategory('Kxtygzrda', 2) result1 = aCategory.insertCategory('Kxtygzrda', 3) self.assertFalse(result1) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryName1Newname1WeightLong(self): aCategory = category() aCategory.insertCategory('C',1) result = aCategory.updateCategory('C', 'N', (2**28)-1) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('N')
def testInsertCategory100Equals(self): aCategory = category() result = aCategory.insertCategory('C' * 100, 2) result1 = aCategory.insertCategory('C' * 100, 3) self.assertFalse(result1) # Eliminando la categoria aCategory.deleteCategory('C' * 100)
def testUpdateCategoryNameNewnameEnieWeight(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.updateCategory('Kxtygzrda', 'ñ', 3) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('ñ')
def testSearchIdCategoryDictionary(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.searchIdCategory({}) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryNameNewnameWeightNegativeNumber(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.updateCategory('Kxtygzrda', 'Nxyvz kxtygzrya', -3) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testSearchIdCategoryNotExist(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.searchIdCategory(99) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testSearchIdCategoryLong(self): aCategory = category() aCategory.insertCategory('Kxtygzrda',1) result = aCategory.searchIdCategory((2**28)-1) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testSearchIdCategoryLong(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.searchIdCategory((2**28) - 1) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryNameNewnameNumberWeight(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.updateCategory('Kxtygzrda', 21, 3) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryNameNewnameWeightNegativeNumber(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.updateCategory('Kxtygzrda', 'Nxyvz kxtygzrya', -3) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryName100NewnameLongWeightLong1(self): aCategory = category() aCategory.insertCategory('C' * 100, 1) result = aCategory.updateCategory('C', 'N' * ((2**28) - 1), 1) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('C' * 100)
def testUpdateCategoryNameNewnameEnieWeight(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.updateCategory('Kxtygzrda', 'ñ', 3) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('ñ')
def testInsertCategoryEquals(self): aCategory = category() result = aCategory.insertCategory('Kxtygzrda',2) result1 = aCategory.insertCategory('Kxtygzrda',3) self.assertFalse(result1) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryName1Newname1WeightLong(self): aCategory = category() aCategory.insertCategory('C', 1) result = aCategory.updateCategory('C', 'N', (2**28) - 1) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('N')
def testUpdateCategoryWeight0(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.updateCategory('Kxtygzrda', 'Nxyvz kxtygzrya', 0) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('Nxyvz kxtygzrya')
def testUpdateCategoryName100Newname0Weight0(self): aCategory = category() aCategory.insertCategory('C' * 100, 1) result = aCategory.updateCategory('C' * 100, '', 0) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('C' * 100)
def testUpdateCategoryNewname101(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.updateCategory('C', 'N' * 101, 2) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testUpdateCategoryNewnameLong(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.updateCategory('Kxtygzrda', 'N' * ((2**28) - 1), 2) self.assertFalse(result) # Eliminando la categoria aCategory.deleteCategory('Kxtygzrda')
def testInsertCategory100Equals(self): aCategory = category() result = aCategory.insertCategory('C'*100,2) result1 = aCategory.insertCategory('C'*100,3) self.assertFalse(result1) # Eliminando la categoria aCategory.deleteCategory('C'*100)
def testUpdateCategoryNameNewname100(self): aCategory = category() aCategory.insertCategory('Kxtygzrda', 1) result = aCategory.updateCategory('Kxtygzrda', 'N' * 100, 2) self.assertTrue(result) # Eliminando la categoria aCategory.deleteCategory('N' * 100)