def newProject(): project = Project(); project.name = "Taskery" project.description = "controle de tarefas" return project
def testShouldIncludeWorkItensInAProject(self): project = Project(); self.assertEquals(project.totalItems(), 0, "there should be no item in the project"); wi1 = WorkItem(project=project); project.addWorkItem(wi1); wi2 = WorkItem(project=project); project.addWorkItem(wi2); wi3 = WorkItem(project=project); project.addWorkItem(wi3); wi4 = WorkItem(project=project); project.addWorkItem(wi4); self.assertEquals(project.totalItems(), 4, "there should be 4 items in project");