MCPcopy Create free account
hub / github.com/sissaschool/xmlschema / test_xsd_version

Method test_xsd_version

tests/test_dataobjects.py:128–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 self.assertEqual(col_data[1].local_name, 'object')
127
128 def test_xsd_version(self):
129 self.assertEqual(DataElement(tag=self.col_xml_root.tag).xsd_version, '1.0')
130
131 xsd_element = self.col_schema.elements['person']
132 data_element = DataElement(tag=self.col_xml_root.tag, xsd_element=xsd_element)
133 self.assertEqual(data_element.xsd_version, self.col_schema.XSD_VERSION)
134
135 def test_xsd_element_binding(self):
136 xsd_element = self.col_schema.elements['person']

Callers

nothing calls this directly

Calls 1

DataElementClass · 0.90

Tested by

no test coverage detected