'Test including and excluding the same namespaces is an error.'

def test_include_and_exclude_validation(self):

    equivalent_namespace_config_kwargs = (dict(ex_namespace_set=['ex.cluded'], namespace_set=['in.cluded', 'ex.cluded']), dict(namespace_set=['ex.cluded'], namespace_options={'ex.cluded': False, 'in.cluded': True}), dict(ex_namespace_set=['ex.cluded', 'in.cluded'], namespace_options={'in.cluded': True}))
    for kwargs in equivalent_namespace_config_kwargs:
        with self.assertRaises(errors.InvalidConfiguration):
            NamespaceConfig(**kwargs)
