'Test excluding namespaces with wildcards'

def test_exclude_wildcard(self):

    equivalent_namespace_configs_for_tests = (NamespaceConfig(ex_namespace_set=['ex.*', 'ex2.*']), NamespaceConfig(namespace_options={'ex.*': False, 'ex2.*': False}), NamespaceConfig(ex_namespace_set=['e*.*']))
    for namespace_config in equivalent_namespace_configs_for_tests:
        self.assertEqual(namespace_config.unmap_namespace('db.col'), 'db.col')
        self.assertEqual(namespace_config.unmap_namespace('ex.clude'), 'ex.clude')
        self.assertEqual(namespace_config.map_namespace('db.col'), 'db.col')
        self.assertIsNone(namespace_config.map_namespace('ex.clude'))
        self.assertIsNone(namespace_config.map_namespace('ex2.clude'))
