'Ensure proper exception is raised if there are no mounted shares.'

def test_set_nas_security_options_exception_if_no_mounted_shares(self):

    self._set_driver()
    drv = self._driver
    drv._ensure_shares_mounted = mock.Mock()
    drv._mounted_shares = []
    is_new_cinder_install = 'does    not    matter'
    self.assertRaises(exception.NfsNoSharesMounted, drv.set_nas_security_options, is_new_cinder_install)
