Exemplo n.º 1
0
    def test_removeElement(self):
        r1 = self.routine.clone()
        r2 = self.routine.clone()
 
        p = Plan("Today")
        p.add(r1)
        p.add(self.routine)
        p.add(r2)
        
        endBefore = p.end
        p.splitRoutine(1,2)

        self.assertEqual(endBefore,p.end)
        self.assertEqual(len(p.step_list),4)
        self.assertEqual(p.step_list[0].theme,r1.theme)
        self.assertEqual(p.step_list[3].theme,r2.theme)