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

Method test_default

tests/functional/test_timeformat.py:72–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 self.assertEqual(expected_time, start_time)
71
72 def test_default(self):
73 self.driver = create_clidriver()
74 self.entry_point = AWSCLIEntryPoint(self.driver)
75 expected_time = (
76 datetime.datetime.fromtimestamp(0)
77 .replace(tzinfo=tzlocal())
78 .isoformat()
79 )
80
81 stdout, _, _ = self.run_cmd(self.command)
82 json_response = json.loads(stdout)
83 start_time = json_response["builds"][0]["startTime"]
84 self.assertEqual(expected_time, start_time)

Callers

nothing calls this directly

Calls 4

create_clidriverFunction · 0.90
AWSCLIEntryPointClass · 0.90
fromtimestampMethod · 0.80
run_cmdMethod · 0.45

Tested by

no test coverage detected