From 8c6646d75ec6f9345e1582c02611984a1d953582 Mon Sep 17 00:00:00 2001 From: Rafael Date: Sat, 27 Jan 2018 17:40:14 +0100 Subject: [PATCH] test-issue-0092: add reproducing case --- tests/trac/test-issue-0092.py | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 tests/trac/test-issue-0092.py diff --git a/tests/trac/test-issue-0092.py b/tests/trac/test-issue-0092.py new file mode 100644 index 00000000..a8dac8b9 --- /dev/null +++ b/tests/trac/test-issue-0092.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals +import logging +import pyxb.binding.generate +import pyxb.utils.domutils +import xml.dom.minidom as dom + + +if __name__ == '__main__': + logging.basicConfig() +_log = logging.getLogger(__name__) + +xsd = ''' + + + + + + + + + + +''' + +code = pyxb.binding.generate.GeneratePython(schema_text=xsd) + +rv = compile(code, 'test', 'exec') +eval(rv) + +import unittest + +class TestIssue0092 (unittest.TestCase): + def testCreateEmptyTemplate (self): + xmlt = '1