def test_warn_on_masked_volume_no_warning_when_no_container_volumes(self):
    volumes_option = [VolumeSpec('/home/user', '/path', 'rw')]
    container_volumes = []
    service = 'service_name'
    with mock.patch('compose.service.log', autospec=True) as mock_log:
        warn_on_masked_volume(volumes_option, container_volumes, service)
    assert (not mock_log.warn.called)
def test_warn_on_masked_volume_no_warning_when_no_container_volumes(self):
    volumes_option = [VolumeSpec('/home/user', '/path', 'rw')]
    container_volumes = []
    service = 'service_name'
    with mock.patch('compose.service.log', autospec=True) as mock_log:
        warn_on_masked_volume(volumes_option, container_volumes, service)
    assert (not mock_log.warn.called)