MCPcopy Index your code
hub / github.com/aws/aws-cli / test_user_agent_for_customization

Function test_user_agent_for_customization

tests/functional/test_useragent.py:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def test_user_agent_for_customization():
33 cli_runner = CLIRunner()
34 service = 's3'
35 operation = 'ls'
36 result = cli_runner.run([service, operation])
37 assert_expected_user_agent(result, service, operation)
38 ua_string = result.aws_requests[0].http_requests[0].headers['User-Agent']
39 feature_list = parse_registered_feature_ids(ua_string)
40 assert 'C' in feature_list

Callers

nothing calls this directly

Calls 4

runMethod · 0.95
CLIRunnerClass · 0.90

Tested by

no test coverage detected