def METHOD_NAME(self, mock_get_job_info, mock_sleep):
    mock_get_job_info.return_value = {
        "key": self._get_mock_job_info(finished=False, aborted=False)
    }
    self.assertRaises(Timeout, self.dsort.wait)