Browse Source

Delete all containers on the Docker daemon before running test

Aanand Prasad 12 years ago
parent
commit
83a086b865
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plum/tests/service_test.py

+ 2 - 1
plum/tests/service_test.py

@@ -8,8 +8,9 @@ class ServiceTestCase(TestCase):
         self.client = Client('http://127.0.0.1:4243')
         self.client.pull('ubuntu')
 
-        for c in self.client.containers():
+        for c in self.client.containers(all=True):
             self.client.kill(c['Id'])
+            self.client.remove_container(c['Id'])
 
         self.service = Service(
             client=self.client,