def test_get_volumes_from_container_read_only(self):
    container_id = 'aabbccddee'
    service = Service('test', image='foo', volumes_from=[VolumeFromSpec(mock.Mock(id=container_id, spec=Container), 'ro', 'container')])
    assert (service._get_volumes_from() == [(container_id + ':ro')])
def test_get_volumes_from_container_read_only(self):
    container_id = 'aabbccddee'
    service = Service('test', image='foo', volumes_from=[VolumeFromSpec(mock.Mock(id=container_id, spec=Container), 'ro', 'container')])
    assert (service._get_volumes_from() == [(container_id + ':ro')])