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

Method test_sleep

tests/unit/s3transfer/test_bandwidth.py:52–55  ·  view source on GitHub ↗
(self, mock_sleep)

Source from the content-addressed store, hash-verified

50
51 @mock.patch('time.sleep')
52 def test_sleep(self, mock_sleep):
53 time_utils = TimeUtils()
54 time_utils.sleep(1)
55 self.assertEqual(mock_sleep.call_args_list, [mock.call(1)])
56
57
58class BaseBandwidthLimitTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

sleepMethod · 0.95
TimeUtilsClass · 0.90
callMethod · 0.45

Tested by

no test coverage detected