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

Method setUp

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

Source from the content-addressed store, hash-verified

590
591class UserAgentTest(unittest.TestCase):
592 def setUp(self):
593 self.patcher = mock.patch.object(
594 APIClient,
595 'send',
596 return_value=fake_resp("GET", f"{fake_api.prefix}/version")
597 )
598 self.mock_send = self.patcher.start()
599
600 def tearDown(self):
601 self.patcher.stop()

Callers

nothing calls this directly

Calls 2

fake_respFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected