diff options
Diffstat (limited to 'tests/integration/api_volume_test.py')
-rw-r--r-- | tests/integration/api_volume_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/integration/api_volume_test.py b/tests/integration/api_volume_test.py index bc97f46..4bfc672 100644 --- a/tests/integration/api_volume_test.py +++ b/tests/integration/api_volume_test.py @@ -49,6 +49,13 @@ class TestVolumes(BaseAPIIntegrationTest): self.client.create_volume(name) self.client.remove_volume(name) + @requires_api_version('1.25') + def test_force_remove_volume(self): + name = 'shootthebullet' + self.tmp_volumes.append(name) + self.client.create_volume(name) + self.client.remove_volume(name, force=True) + def test_remove_nonexistent_volume(self): name = 'shootthebullet' with pytest.raises(docker.errors.NotFound): |