fix test data
@@ -1,3 +1,4 @@ | ||
1 | +# -*- coding:cp932 -*- | |
1 | 2 | from __future__ import nested_scopes |
2 | 3 | |
3 | 4 | import unittest |
@@ -52,11 +53,11 @@ | ||
52 | 53 | |
53 | 54 | |
54 | 55 | def testBasic(self): |
55 | - sjis = open("../readme.sjis").read() | |
56 | + sjis = open("./readme.sjis").read() | |
56 | 57 | self.conv(sjis) |
57 | 58 | |
58 | 59 | def testHankana(self): |
59 | - sjis = open("hankana.txt").read() | |
60 | + sjis = open("test/hankana.txt").read() | |
60 | 61 | self.conv(sjis) |
61 | 62 | |
62 | 63 | def testNEC(self): |
@@ -76,7 +77,7 @@ | ||
76 | 77 | assert toeuc(sjis) == euc |
77 | 78 | assert toeuc(tojis(sjis)) == euc |
78 | 79 | assert tosjis(euc) != sjis |
79 | - assert unicode(tosjis(euc), "japanese.ms932") == unicode(sjis, "japanese.ms932") | |
80 | + assert unicode(tosjis(euc), "cp932") == unicode(sjis, "cp932") | |
80 | 81 | |
81 | 82 | def testGaiji(self): |
82 | 83 | sjis = "".join([chr(x)+chr(y) for x in range(0xf0, 0xfa) for y in range(0x40, 0x7e)]) |