'Cooperators should stop running their tasks when they\'re paused, and
start again when they\'re resumed.'

def test_pauseResume(self):

    self.scheduler.pump()
    self.assertEqual(self.work, [1])
    self.scheduler.pump()
    self.assertEqual(self.work, [1, 2])
    self.task.pause()
    self.scheduler.pump()
    self.assertEqual(self.work, [1, 2])
    self.task.resume()
    self.assertEqual(self.work, [1, 2])
    self.scheduler.pump()
    self.assertEqual(self.work, [1, 2, 3])
