3 from __future__
import absolute_import
, division
, unicode_literals
6 from cola
import compat
11 class IconTestCase(unittest
.TestCase
):
13 def test_from_filename_unicode(self
):
14 filename
= compat
.uchr(0x400) + '.py'
15 expect
= 'file-code.svg'
16 actual
= icons
.basename_from_filename(filename
)
17 self
.assertEqual(expect
, actual
)
19 actual
= icons
.basename_from_filename(core
.encode(filename
))
20 self
.assertEqual(expect
, actual
)