1 from __future__
import absolute_import
, division
, print_function
, unicode_literals
3 from cola
import compat
8 def test_from_filename_unicode():
9 filename
= compat
.uchr(0x400) + '.py'
10 expect
= 'file-code.svg'
11 actual
= icons
.basename_from_filename(filename
)
12 assert expect
== actual
14 actual
= icons
.basename_from_filename(core
.encode(filename
))
15 assert expect
== actual