| 211 | assert excinfo.value.args[0] == 'Resource ID was not provided' |
| 212 | |
| 213 | def test_push_image(self): |
| 214 | with mock.patch('docker.auth.resolve_authconfig', |
| 215 | fake_resolve_authconfig): |
| 216 | self.client.push(fake_api.FAKE_IMAGE_NAME) |
| 217 | |
| 218 | fake_request.assert_called_with( |
| 219 | 'POST', |
| 220 | f"{url_prefix}images/test_image/push", |
| 221 | params={ |
| 222 | 'tag': None |
| 223 | }, |
| 224 | data='{}', |
| 225 | headers={'Content-Type': 'application/json'}, |
| 226 | stream=False, |
| 227 | timeout=DEFAULT_TIMEOUT_SECONDS |
| 228 | ) |
| 229 | |
| 230 | def test_push_image_with_tag(self): |
| 231 | with mock.patch('docker.auth.resolve_authconfig', |