blob: 89458b5008e08128dad6f3b60b317fdeb7c62701 [file] [log] [blame]
Christian Heimesfa50bad2008-03-26 22:55:31 +00001from __future__ import print_function
2from __future__ import unicode_literals
3
4import unittest
5from test import test_support
6
7class TestFuture(unittest.TestCase):
8 def assertType(self, obj, typ):
9 self.assert_(type(obj) is typ,
10 "type(%r) is %r, not %r" % (obj, type(obj), typ))
11
12 def test_unicode_strings(self):
13 self.assertType("", unicode)
14 self.assertType(r"", unicode)
15 self.assertType(u"", unicode)
16 self.assertType(ur"", unicode)
17 self.assertType(b"", str)
18 self.assertType(br"", str)
19
20def test_main():
21 test_support.run_unittest(TestFuture)
22
23if __name__ == "__main__":
24 test_main()