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

Method test_time

tests/unit/s3transfer/test_bandwidth.py:45–49  ·  view source on GitHub ↗
(self, mock_time)

Source from the content-addressed store, hash-verified

43class TestTimeUtils(unittest.TestCase):
44 @mock.patch('time.time')
45 def test_time(self, mock_time):
46 mock_return_val = 1
47 mock_time.return_value = mock_return_val
48 time_utils = TimeUtils()
49 self.assertEqual(time_utils.time(), mock_return_val)
50
51 @mock.patch('time.sleep')
52 def test_sleep(self, mock_sleep):

Callers

nothing calls this directly

Calls 2

timeMethod · 0.95
TimeUtilsClass · 0.90

Tested by

no test coverage detected