def test_pop_02(self): #test pop from empty workplan wp = Workplan().work(10) wp.pop() #worplan now empty self.assertRaises(IndexError, wp.pop)
def test_pop_01(self): #get the next section from the workplan. wp = Workplan().work(10).wait(20).work(30) # get first section section = wp.pop() self.assertEqual(Work(10), section)