示例#1
0
 def testEqual(self):
     th.assertXmlEqual(
         '<root />',
         '<root>\n</root>')
示例#2
0
 def testStarTextMatches(self):
     a = '<r>*</r>'
     th.assertXmlEqual(a, '<r></r>')
     th.assertXmlEqual(a, '<r>hi</r>')
示例#3
0
 def assertXmlNEq(self, a, b):
     with self.assertRaises(AssertionError):
         th.assertXmlEqual(a, b)