示例#1
0
 def test_nsAndName(self):
     result = qName.parseString('an:node')
     self.assertEqual(result[0].name, 'node')
     self.assertEqual(result[0].ns, 'an')
示例#2
0
 def test_noNS(self):
     result = qName.parseString('nodeA')
     self.assertEqual(result[0].name, 'nodeA')
     self.assertEqual(result[0].ns, None)