コード例 #1
0
ファイル: test_misc.py プロジェクト: AbletonAG/abl.util
 def test_ignore_errors(self):
     teststring = b'H\xc3\xbclle'
     self.assertEqual(unicodify(teststring, codecs=()), u"Hlle")
コード例 #2
0
ファイル: test_misc.py プロジェクト: AbletonAG/abl.util
 def test_utf8_to_unicode(self):
     teststring = b'H\xc3\xbclle'
     self.assertEqual(unicodify(teststring), u"Hülle")
コード例 #3
0
ファイル: test_misc.py プロジェクト: AbletonAG/abl.util
 def test_latin1_to_unicode(self):
     teststring = b'H\xfclle'
     self.assertEqual(unicodify(teststring), u"Hülle")
コード例 #4
0
 def test_ignore_errors(self):
     teststring = 'H\xc3\xbclle'
     assert unicodify(teststring, codecs=()) == u"Hlle"
コード例 #5
0
ファイル: test_misc.py プロジェクト: AbletonAG/abl.util
 def test_unicode_unity(self):
     utest = u"Hülle"
     assert unicodify(utest) is utest
コード例 #6
0
 def test_utf8_to_unicode(self):
     teststring = 'H\xc3\xbclle'
     assert unicodify(teststring) == u"Hülle"
コード例 #7
0
 def test_unicode_unity(self):
     utest = u"Hülle"
     assert unicodify(utest) is utest
コード例 #8
0
ファイル: test_misc.py プロジェクト: AbletonAG/abl.util
 def test_ignore_errors(self):
     teststring = b'H\xc3\xbclle'
     self.assertEqual(unicodify(teststring, codecs=()), u"Hlle")
コード例 #9
0
ファイル: test_misc.py プロジェクト: AbletonAG/abl.util
 def test_latin1_to_unicode(self):
     teststring = b'H\xfclle'
     self.assertEqual(unicodify(teststring), u"Hülle")
コード例 #10
0
ファイル: test_misc.py プロジェクト: AbletonAG/abl.util
 def test_utf8_to_unicode(self):
     teststring = b'H\xc3\xbclle'
     self.assertEqual(unicodify(teststring), u"Hülle")