Commits

Mikhail Korobov  committed ac8bbb2

Test case for utf8 string list argument handling

  • Participants
  • Parent commits ff18b7f

Comments (0)

Files changed (1)

File cache_utils/tests.py

 
         self.assertEqual(my_func(u"Ы"*500), u"5"+u"Ы"*500)
         self.assertEqual(my_func(u"Ы"*500), u"5"+u"Ы"*500)
+
+    def test_utf8_args(self):
+        @cached(60)
+        def func(utf8_array, *args):
+            return utf8_array
+        func([u'Василий'.encode('utf8')], u'Петрович'.encode('utf8'))
+