Remove intermediate containers in recreate test

This commit is contained in:
Ben Firshman 2014-01-26 19:47:43 +00:00
parent cf18a3141f
commit ea93c01dfb
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ class ProjectTest(DockerClientTestCase):
self.assertEqual(len(web.containers(stopped=True)), 1)
self.assertEqual(len(db.containers(stopped=True)), 1)
# remove intermediate containers
for (service, container) in old:
container.remove()
def test_start_stop_kill_remove(self):
web = self.create_service('web')
db = self.create_service('db')