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