Beispiel #1
0
 def test__to_unicode_int(self):
     '''
     Test the ``_to_unicode`` function when it receives an integer value.
     Should return a unicode value, which is unicode in PY2 and str in PY3.
     '''
     if six.PY3:
         self.assertTrue(isinstance(win_reg._to_unicode(1), str))
     else:
         self.assertTrue(isinstance(win_reg._to_unicode(1), unicode))  # pylint: disable=incompatible-py3-code,undefined-variable
Beispiel #2
0
 def test__to_unicode_int(self):
     """
     Test the ``_to_unicode`` function when it receives an integer value.
     Should return a unicode value, which is unicode in PY2 and str in PY3.
     """
     self.assertTrue(isinstance(win_reg._to_unicode(1), str))