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

Method test_total_seconds

tests/unit/botocore/test_compat.py:30–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28
29class TotalSecondsTest(BaseEnvVar):
30 def test_total_seconds(self):
31 delta = datetime.timedelta(days=1, seconds=45)
32 remaining = total_seconds(delta)
33 self.assertEqual(remaining, 86445.0)
34
35 delta = datetime.timedelta(seconds=33, microseconds=772)
36 remaining = total_seconds(delta)
37 self.assertEqual(remaining, 33.000772)
38
39
40class TestUnquoteStr(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

total_secondsFunction · 0.90

Tested by

no test coverage detected