• Home
  • Raw
  • Download

Lines Matching refs:ns_uri

47 ns_uri = "http://www.python.org/xml-ns/saxtest/"  variable
68 self.assertRaises(KeyError, attrs.getValue, (ns_uri, "attr"))
71 self.assertRaises(KeyError, attrs.getQNameByName, (ns_uri, "attr"))
72 self.assertRaises(KeyError, attrs.__getitem__, (ns_uri, "attr"))
77 self.assertNotIn((ns_uri, "attr"), attrs)
79 self.assertEqual(attrs.get((ns_uri, "attr")), None)
80 self.assertEqual(attrs.get((ns_uri, "attr"), 25), 25)
560 gen.startPrefixMapping("ns1", ns_uri)
561 gen.startElementNS((ns_uri, "doc"), "ns1:doc", {})
565 gen.endElementNS((ns_uri, "doc"), "ns1:doc")
571 ns_uri))
578 gen.startPrefixMapping("ns1", ns_uri)
579 gen.startElementNS((ns_uri, "doc"), "ns1:doc", {})
583 gen.endElementNS((ns_uri, "doc"), "ns1:doc")
589 ns_uri))
1055 parser.feed("<doc xmlns:ns='%s' ns:attr='val'/>" % ns_uri)
1061 self.assertEqual(attrs.getNames(), [(ns_uri, "attr")])
1065 self.assertIn((ns_uri, "attr"), attrs)
1066 self.assertEqual(attrs.get((ns_uri, "attr")), "val")
1067 self.assertEqual(attrs.get((ns_uri, "attr"), 25), "val")
1068 self.assertEqual(list(attrs.items()), [((ns_uri, "attr"), "val")])
1070 self.assertEqual(attrs.getValue((ns_uri, "attr")), "val")
1071 self.assertEqual(attrs[(ns_uri, "attr")], "val")
1294 attrs = AttributesNSImpl({(ns_uri, "attr") : "val"},
1295 {(ns_uri, "attr") : "ns:attr"})
1298 self.assertEqual(attrs.getNames(), [(ns_uri, "attr")])
1301 self.assertIn((ns_uri, "attr"), attrs)
1302 self.assertEqual(list(attrs.keys()), [(ns_uri, "attr")])
1303 self.assertEqual(attrs.get((ns_uri, "attr")), "val")
1304 self.assertEqual(attrs.get((ns_uri, "attr"), 25), "val")
1305 self.assertEqual(list(attrs.items()), [((ns_uri, "attr"), "val")])
1307 self.assertEqual(attrs.getValue((ns_uri, "attr")), "val")
1309 self.assertEqual(attrs.getNameByQName("ns:attr"), (ns_uri, "attr"))
1310 self.assertEqual(attrs[(ns_uri, "attr")], "val")
1311 self.assertEqual(attrs.getQNameByName((ns_uri, "attr")), "ns:attr")