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)
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)
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)
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)
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)
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)
def test_pprint_initialization(self): otxt = pprint_xml(INIT_XML) self.assertEqual(EINIT_XML, otxt)