@silence_warnings
    def test_duplicate_ns_prefix(self):
        p = STIXPackage()
        bad = {'bad:ns': 'stix'}  # 'stix' is already default ns prefix

        self.assertRaises(
            nsparser.DuplicatePrefixError,
            p.to_xml,
            ns_dict=bad
        )

        # Build a valid stix document that has a default namespace remapped
        # to another namespace. We remap 'cybox' to a bogus ns here.
        xml = (
            """<stix:STIX_Package
                    xmlns:cybox="THISISGONNABEPROBLEM"
                    xmlns:stix="http://stix.mitre.org/stix-1"
                    version="1.2"
                    timestamp="2015-04-09T14:22:25.620831+00:00"/>"""
        )

        sio = StringIO.StringIO(xml)
        p = STIXPackage.from_xml(sio)

        # Exporting should raise an error.
        self.assertRaises(
            nsparser.DuplicatePrefixError,
            p.to_xml
        )
override the flavors in the defaultFlavorPath with flavor,
dataset/ETHPy150Open STIXProject/python-stix/stix/test/utils/nsparser_test.py/NamespaceInfoTests.test_duplicate_ns_prefix--crossover with--dataset/ETHPy150Open sassoftware/conary/conary/repository/findtrove.py/QuerySetFactory.overrideFlavors