(self)
| 1448 | ) |
| 1449 | |
| 1450 | def test_restart_container(self): |
| 1451 | self.client.restart(fake_api.FAKE_CONTAINER_ID, timeout=2) |
| 1452 | |
| 1453 | fake_request.assert_called_with( |
| 1454 | 'POST', |
| 1455 | (url_prefix + 'containers/' + |
| 1456 | fake_api.FAKE_CONTAINER_ID + '/restart'), |
| 1457 | params={'t': 2}, |
| 1458 | timeout=(DEFAULT_TIMEOUT_SECONDS + 2) |
| 1459 | ) |
| 1460 | |
| 1461 | def test_restart_container_with_dict_instead_of_id(self): |
| 1462 | self.client.restart({'Id': fake_api.FAKE_CONTAINER_ID}, timeout=2) |