diff options
author | Rogan Creswick <creswick@galois.com> | 2012-03-30 17:07:02 -0700 |
---|---|---|
committer | Rogan Creswick <creswick@galois.com> | 2012-03-30 17:07:02 -0700 |
commit | f6ab6622aab00fe7c2f4c3dc41f786ebbe0f0d73 (patch) | |
tree | 870111038542cd27153e1396ebdc063573249689 /tools/addon-sdk-1.4/python-lib/cuddlefish/tests/test_rdf.py |
initial revision
Diffstat (limited to 'tools/addon-sdk-1.4/python-lib/cuddlefish/tests/test_rdf.py')
-rw-r--r-- | tools/addon-sdk-1.4/python-lib/cuddlefish/tests/test_rdf.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/addon-sdk-1.4/python-lib/cuddlefish/tests/test_rdf.py b/tools/addon-sdk-1.4/python-lib/cuddlefish/tests/test_rdf.py new file mode 100644 index 0000000..4585143 --- /dev/null +++ b/tools/addon-sdk-1.4/python-lib/cuddlefish/tests/test_rdf.py @@ -0,0 +1,15 @@ +import unittest +import xml.dom.minidom + +from cuddlefish import rdf + + +class RDFTests(unittest.TestCase): + def testBug567660(self): + obj = rdf.RDF() + data = u'\u2026'.encode('utf-8') + x = '<?xml version="1.0" encoding="utf-8"?><blah>%s</blah>' % data + obj.dom = xml.dom.minidom.parseString(x) + self.assertEqual(obj.dom.documentElement.firstChild.nodeValue, + u'\u2026') + self.assertEqual(str(obj).replace("\n",""), x.replace("\n","")) |