'Verify an exception is raised if the regex pattern is invalid'

def test_get_pool_map_invalid_conf(self):

    self.library.configuration.netapp_pool_name_search_pattern = '(.+'
    self.assertRaises(exception.InvalidConfigurationValue, self.library._get_flexvol_to_pool_map)
