def test_get_context_method(self):
     schema_proxy = XMLSchemaProxy()
     self.assertIsInstance(schema_proxy.get_context(), XPathContext)
     self.assertIsInstance(
         super(XMLSchemaProxy, schema_proxy).get_context(), XPathContext)
Exemplo n.º 2
0
 def test_get_context_method(self):
     schema_proxy = XMLSchemaProxy(self.xs1)
     context = schema_proxy.get_context()
     self.assertIs(context.root, self.xs1)