(self, mock_func)
| 46 | |
| 47 | @mock.patch('docker.api.APIClient.version') |
| 48 | def test_version(self, mock_func): |
| 49 | mock_func.return_value = fake_api.get_fake_version()[1] |
| 50 | client = docker.from_env(version=DEFAULT_DOCKER_API_VERSION) |
| 51 | assert client.version() == mock_func.return_value |
| 52 | mock_func.assert_called_with() |
| 53 | |
| 54 | def test_call_api_client_method(self): |
| 55 | client = docker.from_env(version=DEFAULT_DOCKER_API_VERSION) |