def test_to_str_unicode(self): self.assertEqual(to_str(u'\xf1'), '\xc3\xb1') self.assertEqual(to_str(u'fuho', 'rot13'), 'shub')
def test_to_str(self): self.assertEqual(to_str([]), '[]') self.assertEqual(to_str(1), '1')