Skip to content

Instantly share code, notes, and snippets.

@kwatch
Created February 20, 2014 05:08
Show Gist options
  • Save kwatch/9107384 to your computer and use it in GitHub Desktop.
Save kwatch/9107384 to your computer and use it in GitHub Desktop.
import unittest
from oktest import ok, test
class FooTest(unittest.TestCase):
@test("'日本語'")
def _(self):
msg = "日本語"
ok (msg) == "にほんご"
@test("'日本語'.encode('utf-8')")
def _(self):
msg = "日本語".encode('utf-8')
ok (msg) == "にほんご"
if __name__ == '__main__':
import oktest
oktest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment