doc: update v3.12.0 release notes draft
[git-cola.git] / test / icons_test.py
blobd68e27c7dd56b91eab874678added96363a6daf6
1 from __future__ import absolute_import, division, print_function, unicode_literals
3 from cola import compat
4 from cola import core
5 from cola import icons
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