'Test including and excluding namespaces at the same time.'

def test_include_and_exclude(self):

    equivalent_namespace_configs_for_tests = (NamespaceConfig(ex_namespace_set=['ex.*'], namespace_set=['ex.cluded_still', 'in.cluded']), NamespaceConfig(namespace_options={'ex.*': False, 'ex.cluded_still': True, 'in.cluded': True}), NamespaceConfig(ex_namespace_set=['ex.cluded', 'ex.cluded_still'], namespace_set=['ex.*', 'in.cluded']))
    for namespace_config in equivalent_namespace_configs_for_tests:
        self.assertIsNone(namespace_config.map_namespace('ex.cluded'))
        self.assertIsNone(namespace_config.map_namespace('ex.cluded_still'))
        self.assertIsNone(namespace_config.map_namespace('also.not.included'))
        self.assertEqual(namespace_config.map_namespace('in.cluded'), 'in.cluded')
