def test_str_wstring():
x = pstr.wstring()
oldstring = "ok, this is unicode"
string = oldstring
x.length = len(string)/2
string = ''.join([c+'\x00' for c in string])
x.source = provider.string(string)
x.load()
if x.str() == oldstring[:len(oldstring)/2]:
raise Success
评论列表
文章目录