'do_setup should throw error if shares config is not configured.'

def test_setup_should_throw_error_if_shares_config_not_configured(self):

    self.override_config('nfs_shares_config', None)
    drv = nfs.NfsDriver(configuration=self.configuration)
    mock_os_path_exists = self.mock_object(os.path, 'exists')
    with self.assertRaisesRegex(exception.NfsException, '.*no    NFS    config    file    configured.*'):
        drv.do_setup(self.context)
    self.assertEqual(0, mock_os_path_exists.call_count)
