Skip to content
Browse files

Tuple test

  • Loading branch information...
1 parent 4938d82 commit 5507556dc02c3c3161ce61bbe34501ce9ce0e98c @minimal committed Mar 26, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/test_pytoxml.py
View
7 test/test_pytoxml.py
@@ -48,6 +48,13 @@ def test_list_values(self):
output = "<root><a><item>1</item><item>2</item></a></root>"
self.assertEqual(str(p2x), output)
+ def test_tuple_values(self):
+ p2x = PyToXml("root", { "a": (1, 2) })
+ p2x.encode()
+
+ output = "<root><a><item>1</item><item>2</item></a></root>"
+ self.assertEqual(str(p2x), output)
+
def test_unicode(self):
p2x = PyToXml("root", { "a": u"\u2603" })
p2x.encode()

0 comments on commit 5507556

Please sign in to comment.
Something went wrong with that request. Please try again.