summaryrefslogtreecommitdiff
path: root/tests/integration/api_volume_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/api_volume_test.py')
-rw-r--r--tests/integration/api_volume_test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/integration/api_volume_test.py b/tests/integration/api_volume_test.py
index 4bfc672..5a4bb1e 100644
--- a/tests/integration/api_volume_test.py
+++ b/tests/integration/api_volume_test.py
@@ -56,6 +56,14 @@ class TestVolumes(BaseAPIIntegrationTest):
self.client.create_volume(name)
self.client.remove_volume(name, force=True)
+ @requires_api_version('1.25')
+ def test_prune_volumes(self):
+ name = 'hopelessmasquerade'
+ self.client.create_volume(name)
+ self.tmp_volumes.append(name)
+ result = self.client.prune_volumes()
+ assert name in result['VolumesDeleted']
+
def test_remove_nonexistent_volume(self):
name = 'shootthebullet'
with pytest.raises(docker.errors.NotFound):