def test_mount_same_host_path_to_two_volumes(self):
    service = Service('web', image='busybox', volumes=[VolumeSpec.parse('/host/path:/data1', True), VolumeSpec.parse('/host/path:/data2', True)], client=self.mock_client)
    self.mock_client.inspect_image.return_value = {'Id': 'ababab', 'ContainerConfig': {'Volumes': {}}}
    service._get_container_create_options(override_options={}, number=1)
    assert (set(self.mock_client.create_host_config.call_args[1]['binds']) == set(['/host/path:/data1:rw', '/host/path:/data2:rw']))
def test_mount_same_host_path_to_two_volumes(self):
    service = Service('web', image='busybox', volumes=[VolumeSpec.parse('/host/path:/data1', True), VolumeSpec.parse('/host/path:/data2', True)], client=self.mock_client)
    self.mock_client.inspect_image.return_value = {'Id': 'ababab', 'ContainerConfig': {'Volumes': {}}}
    service._get_container_create_options(override_options={}, number=1)
    assert (set(self.mock_client.create_host_config.call_args[1]['binds']) == set(['/host/path:/data1:rw', '/host/path:/data2:rw']))