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

Method test_sample_module

tests/test_codegen.py:596–601  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

594 self.assertSetEqual(set(self.generator.list_templates()), templates)
595
596 def test_sample_module(self):
597 generator = PythonGenerator(self.col_xsd_file)
598
599 python_module = generator.render('sample.py.jinja')[0]
600 ast_module = ast.parse(python_module)
601 self.assertIsInstance(ast_module, ast.Module)
602
603 def test_bindings_module(self):
604 generator = PythonGenerator(self.col_xsd_file)

Callers

nothing calls this directly

Calls 3

PythonGeneratorClass · 0.90
renderMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected