def test_nsinfo_collect(self):
        nsinfo = nsparser.NamespaceInfo()

        # Collect classes
        nsinfo.collect(C())

        # Parse collected classes
        nsinfo._parse_collected_classes()

        self.assertEqual(len(nsinfo._collected_namespaces), 4)  # noqa
Tests that the NamespaceInfo.collect() method correctly ascends the MRO
dataset/ETHPy150Open STIXProject/python-stix/stix/test/utils/nsparser_test.py/NamespaceInfoTests.test_nsinfo_collect