Lines Matching refs:preprocess
45 result = xpp.preprocess(xml_str)
48 self.assertRaises(FileNotFoundError, xpp.preprocess, xml_str)
55 result = xpp.preprocess(xml_str)
57 self.assertRaises(KeyError, xpp.preprocess, "$(env.UNKNOWN)")
63 result = xpp.preprocess(xml_str)
65 self.assertRaises(KeyError, xpp.preprocess, "$(sys.UNKNOWN)")
71 result = xpp.preprocess(xml_str)
76 result = xpp.preprocess(xml_str)
85 result = xpp.preprocess(xml_str)
88 self.assertRaises(RuntimeError, xpp.preprocess, "<?error \"test\"?>")
92 result = xpp.preprocess('<root><?cmd "echo hello world"?></root>')
96 xpp.preprocess, '<?cmd "test-unknown-cmd"?>'
101 result = xpp.preprocess(
108 result = xpp.preprocess('<root><?if True?>ok<?endif?></root>')
110 result = xpp.preprocess('<root><?if False?>ok<?endif?></root>')
112 result = xpp.preprocess('<root><?if True?>ok<?else?>ko<?endif?></root>')
114 result = xpp.preprocess('<root><?if False?>ok<?else?>ko<?endif?></root>')
116 result = xpp.preprocess(
120 result = xpp.preprocess(
127 result = xpp.preprocess('<root><?ifdef USER?>ok<?else?>ko<?endif?></root>')
129 result = xpp.preprocess(