Example #1
0
 def parse(self, text):
     return parseString("%s%s%s" % (self._prefix, text, self._suffix))
Example #2
0
 def test_empty(self):
     m = parseString("<metadata/>")
     self.assertEqual(m, {})
Example #3
0
 def roundtrip(self, mapping):
     text = dumpString(mapping)
     parsed = parseString(text)
     self.assertEqual(parsed, mapping)