(self)
| 1373 | ) |
| 1374 | |
| 1375 | def test_stop_container(self): |
| 1376 | timeout = 2 |
| 1377 | |
| 1378 | self.client.stop(fake_api.FAKE_CONTAINER_ID, timeout=timeout) |
| 1379 | |
| 1380 | fake_request.assert_called_with( |
| 1381 | 'POST', |
| 1382 | url_prefix + 'containers/' + fake_api.FAKE_CONTAINER_ID + '/stop', |
| 1383 | params={'t': timeout}, |
| 1384 | timeout=(DEFAULT_TIMEOUT_SECONDS + timeout) |
| 1385 | ) |
| 1386 | |
| 1387 | def test_stop_container_with_dict_instead_of_id(self): |
| 1388 | timeout = 2 |