예제 #1
0
    def test_pprint(self):
        intxt = '''<root><a><b></b></a></root>'''
        otxt = pprint_xml(intxt)
        etxt = '''<root>
    <a>
        <b></b>
    </a>
</root>'''
        self.assertEqual(otxt, etxt)
예제 #2
0
파일: xml_parser.py 프로젝트: NMGRL/pychron
    def test_pprint(self):
        intxt = '''<root><a><b></b></a></root>'''
        otxt = pprint_xml(intxt)
        etxt='''<root>
    <a>
        <b></b>
    </a>
</root>'''
        self.assertEqual(otxt, etxt)
예제 #3
0
    def test_pprint4(self):
        intxt = '''<root><a>12<b>123</b><c>1234</c></a></root>'''
        otxt = pprint_xml(intxt)
        etxt = '''<root>
    <a>12
        <b>123</b>
        <c>1234</c>
    </a>
</root>'''
        self.assertEqual(otxt, etxt)
예제 #4
0
파일: xml_parser.py 프로젝트: NMGRL/pychron
    def test_pprint4(self):
        intxt = '''<root><a>12<b>123</b><c>1234</c></a></root>'''
        otxt = pprint_xml(intxt)
        etxt='''<root>
    <a>12
        <b>123</b>
        <c>1234</c>
    </a>
</root>'''
        self.assertEqual(otxt, etxt)
예제 #5
0
    def test_pprint5(self):
        intxt = '''<root><a enabled="false">12<b>123</b><c>1234</c></a></root>'''
        otxt = pprint_xml(intxt)
        etxt = '''<root>
    <a enabled="false">12
        <b>123</b>
        <c>1234</c>
    </a>
</root>'''

        self.assertEqual(otxt, etxt)
예제 #6
0
파일: xml_parser.py 프로젝트: NMGRL/pychron
    def test_pprint5(self):
        intxt = '''<root><a enabled="false">12<b>123</b><c>1234</c></a></root>'''
        otxt = pprint_xml(intxt)
        etxt='''<root>
    <a enabled="false">12
        <b>123</b>
        <c>1234</c>
    </a>
</root>'''

        self.assertEqual(otxt, etxt)
예제 #7
0
 def test_pprint_initialization(self):
     otxt = pprint_xml(INIT_XML)
     self.assertEqual(EINIT_XML, otxt)
예제 #8
0
파일: xml_parser.py 프로젝트: NMGRL/pychron
 def test_pprint_initialization(self):
     otxt = pprint_xml(INIT_XML)
     self.assertEqual(EINIT_XML, otxt)