def test_prefix2clark(self): clark = XML._prefix2clark("office:p") self.assertEqual(clark, "{urn:oasis:names:tc:opendocument:xmlns:office:1.0}p")
def test_split_prefix(self): prefix, tag = XML._split_prefix("office:p") self.assertEqual(prefix, 'office') self.assertEqual(tag, 'p')