MCPcopy Create free account
hub / github.com/aws/aws-cli / test_done

Method test_done

tests/unit/s3transfer/test_futures.py:605–609  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

603 self.assertEqual(wrapped_future.result(), (('foo',), {'biz': 'baz'}))
604
605 def test_done(self):
606 with ThreadPoolExecutor(max_workers=1) as executor:
607 future = executor.submit(return_call_args, 'foo', biz='baz')
608 wrapped_future = ExecutorFuture(future)
609 self.assertTrue(wrapped_future.done())
610
611 def test_add_done_callback(self):
612 done_callbacks = []

Callers

nothing calls this directly

Calls 3

doneMethod · 0.95
ExecutorFutureClass · 0.90
submitMethod · 0.45

Tested by

no test coverage detected