1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

add unicode tests

This commit is contained in:
William Ting 2013-07-13 18:17:01 -05:00
parent ce68134af4
commit 1413f531ba

View File

@ -16,6 +16,7 @@ from autojump import output
from autojump import output_quotes
from autojump import parse_env_args
from autojump import parse_args
from autojump import unico
# TODO(ting|2013-07-06): skip certain tests depending on Python version
@ -52,6 +53,11 @@ class TestUtilities(unittest.TestCase):
mock_version.__getitem__.side_effect = self.PythonVersion(3, 2, 3)
self.assertFalse(is_python2())
@mock.patch.object(sys, 'version_info')
def test_unico_converts_python2_string(self, mock_version):
mock_version.__getitem__.side_effect = self.PythonVersion(2, 6, 7)
self.assertEqual(unico('cookie monster'), u'cookie monster')
@unittest.skip("unfinished")
def test_output_quotes(self):
output = lambda x: x