Fix regression when mounting volumes

Caused by
77fec67c60
This commit is contained in:
Aanand Prasad 2014-04-25 12:28:00 +01:00
commit 6e932794f7
2 changed files with 10 additions and 1 deletions

View file

@ -114,6 +114,12 @@ class ServiceTest(DockerClientTestCase):
service.start_container(container)
self.assertIn('/var/db', container.inspect()['Volumes'])
def test_create_container_with_specified_volume(self):
service = self.create_service('db', volumes=['/tmp:/host-tmp'])
container = service.create_container()
service.start_container(container)
self.assertIn('/host-tmp', container.inspect()['Volumes'])
def test_recreate_containers(self):
service = self.create_service(
'db',