+++ /dev/null
-from __future__ import unicode_literals\r
-\r
-import unittest\r
-from test import test_support\r
-\r
-class TestFuture(unittest.TestCase):\r
- def assertType(self, obj, typ):\r
- self.assertTrue(type(obj) is typ,\r
- "type(%r) is %r, not %r" % (obj, type(obj), typ))\r
-\r
- def test_unicode_strings(self):\r
- self.assertType("", unicode)\r
- self.assertType('', unicode)\r
- self.assertType(r"", unicode)\r
- self.assertType(r'', unicode)\r
- self.assertType(""" """, unicode)\r
- self.assertType(''' ''', unicode)\r
- self.assertType(r""" """, unicode)\r
- self.assertType(r''' ''', unicode)\r
- self.assertType(u"", unicode)\r
- self.assertType(u'', unicode)\r
- self.assertType(ur"", unicode)\r
- self.assertType(ur'', unicode)\r
- self.assertType(u""" """, unicode)\r
- self.assertType(u''' ''', unicode)\r
- self.assertType(ur""" """, unicode)\r
- self.assertType(ur''' ''', unicode)\r
-\r
- self.assertType(b"", str)\r
- self.assertType(b'', str)\r
- self.assertType(br"", str)\r
- self.assertType(br'', str)\r
- self.assertType(b""" """, str)\r
- self.assertType(b''' ''', str)\r
- self.assertType(br""" """, str)\r
- self.assertType(br''' ''', str)\r
-\r
- self.assertType('' '', unicode)\r
- self.assertType('' u'', unicode)\r
- self.assertType(u'' '', unicode)\r
- self.assertType(u'' u'', unicode)\r
-\r
-def test_main():\r
- test_support.run_unittest(TestFuture)\r
-\r
-if __name__ == "__main__":\r
- test_main()\r