(self)
| 119 | |
| 120 | class DockerApiTest(BaseAPIClientTest): |
| 121 | def test_ctor(self): |
| 122 | with pytest.raises(docker.errors.DockerException) as excinfo: |
| 123 | APIClient(version=1.12) |
| 124 | |
| 125 | assert str( |
| 126 | excinfo.value |
| 127 | ) == 'Version parameter must be a string or None. Found float' |
| 128 | |
| 129 | def test_url_valid_resource(self): |
| 130 | url = self.client._url('/hello/{0}/world', 'somename') |