Skip to content

Commit

Permalink
Tuple test
Browse files Browse the repository at this point in the history
  • Loading branch information
minimal committed Mar 25, 2012
1 parent 4938d82 commit 5507556
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_pytoxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5507556

Please sign in to comment.