def test_str_to_utf8():
 s = '\\u01ff\\u02ff'
 u = utils.to_utf8(s)
 assert_equal(type(s), type(str()))
 assert_equal(type(u), type(u'\u01ff\u02ff'))

def test_str_to_utf8 ( ) : s = '\\u01ff\\u02ff' u = utils . to_utf8 ( s ) assert_equal ( type ( s ) , type ( str ( ) ) ) assert_equal ( type ( u ) , type ( u'\u01ff\u02ff' ) )
test the to_utf8 function: string to unicode .