Created
February 20, 2014 05:08
-
-
Save kwatch/9107384 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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