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