'When the Compose file specifies a trailing slash in the container path, make
sure we copy the volume over when recreating.'

def test_recreate_preserves_volume_with_trailing_slash(self):

    service = self.create_service(u'data', volumes=[VolumeSpec.parse(u'/data/')])
    old_container = create_and_start_container(service)
    volume_path = old_container.get_mount(u'/data')[u'Source']
    new_container = service.recreate_container(old_container)
    self.assertEqual(new_container.get_mount(u'/data')[u'Source'], volume_path)
