def test_get_timeout_longer(self):
    res = self.app.AsyncResult(self.task4['id'])
    with patch('celery.result.time') as _time:
        with self.assertRaises(TimeoutError):
            res.get(timeout=1, interval=1)
            _time.sleep.assert_called_with(1)
def test_get_timeout_longer(self):
    res = self.app.AsyncResult(self.task4['id'])
    with patch('celery.result.time') as _time:
        with self.assertRaises(TimeoutError):
            res.get(timeout=1, interval=1)
            _time.sleep.assert_called_with(1)