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