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