def test_async_job_does_not_timeout(self): job = remotable_module.remote_async_long_job('localhost:5001') job.start() job.join(12)
def test_async_job_timeout(self): with self.assertRaises(TimeoutError): job = remotable_module.remote_async_long_job('localhost:5001') job.start() job.join(3)