'Test higher level setting of NAS Security options.
The NFS driver overrides the base method with a driver specific
version.'

@mock.patch.object(nfs, 'LOG')
def test_set_nas_security_options_when_false(self, LOG):

    self._set_driver()
    drv = self._driver
    drv._mounted_shares = [self.TEST_NFS_EXPORT1]
    is_new_install = False
    drv._ensure_shares_mounted = mock.Mock()
    drv._get_mount_point_for_share = mock.Mock(return_value=self.TEST_MNT_POINT)
    drv._determine_nas_security_option_setting = mock.Mock(return_value='false')
    drv.set_nas_security_options(is_new_install)
    self.assertEqual('false', drv.configuration.nas_secure_file_operations)
    self.assertEqual('false', drv.configuration.nas_secure_file_permissions)
    self.assertTrue(LOG.warning.called)
