i18n: add new translations to git-cola.pot
[git-cola.git] / test / icons_test.py
blob685ca9d631c94229b802a949bf67ebc0b635afed
1 #!/usr/bin/env python
2 # encoding: utf-8
3 from __future__ import absolute_import, division, unicode_literals
4 import unittest
6 from cola import compat
7 from cola import core
8 from cola import icons
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)