def setUpClass(cls): cls.col_xsd_filename = cls.casepath( 'examples/collection/collection.xsd') cls.col_xml_filename = cls.casepath( 'examples/collection/collection.xml') cls.col_xml_root = ElementTree.parse(cls.col_xml_filename).getroot() cls.col_lxml_root = lxml_etree.parse(cls.col_xml_filename).getroot() cls.col_nsmap = fetch_namespaces(cls.col_xml_filename) cls.col_namespace = cls.col_nsmap['col']
def test_fetch_namespaces(self): self.assertFalse( fetch_namespaces( os.path.join(self.test_dir, 'resources/malformed.xml')))
def test_fetch_namespaces(self): self.assertFalse(fetch_namespaces(casepath('resources/malformed.xml')))
def test_fetch_namespaces(self): self.assertFalse(fetch_namespaces(self.casepath('resources/malformed.xml')))