MCPcopy Index your code
hub / github.com/docker/docker-py / test_default_user_agent

Method test_default_user_agent

tests/unit/api_test.py:603–610  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

601 self.patcher.stop()
602
603 def test_default_user_agent(self):
604 client = APIClient(version=DEFAULT_DOCKER_API_VERSION)
605 client.version()
606
607 assert self.mock_send.call_count == 1
608 headers = self.mock_send.call_args[0][0].headers
609 expected = f'docker-sdk-python/{docker.__version__}'
610 assert headers['User-Agent'] == expected
611
612 def test_custom_user_agent(self):
613 client = APIClient(

Callers

nothing calls this directly

Calls 2

APIClientClass · 0.90
versionMethod · 0.45

Tested by

no test coverage detected