mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
add unicode tests
This commit is contained in:
parent
ce68134af4
commit
1413f531ba
@ -16,6 +16,7 @@ from autojump import output
|
|||||||
from autojump import output_quotes
|
from autojump import output_quotes
|
||||||
from autojump import parse_env_args
|
from autojump import parse_env_args
|
||||||
from autojump import parse_args
|
from autojump import parse_args
|
||||||
|
from autojump import unico
|
||||||
|
|
||||||
# TODO(ting|2013-07-06): skip certain tests depending on Python version
|
# 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)
|
mock_version.__getitem__.side_effect = self.PythonVersion(3, 2, 3)
|
||||||
self.assertFalse(is_python2())
|
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")
|
@unittest.skip("unfinished")
|
||||||
def test_output_quotes(self):
|
def test_output_quotes(self):
|
||||||
output = lambda x: x
|
output = lambda x: x
|
||||||
|
Loading…
Reference in New Issue
Block a user