blob: 9ca3a364f7b52e8d7a027ec639b6f952fb167fb9 [file] [log] [blame]
Benjamin Peterson9aebc612008-10-26 20:58:53 +00001# Check that multiple features can be enabled.
2from __future__ import unicode_literals, print_function
3
4import sys
5import unittest
6from . import support
7
8
9class TestMultipleFeatures(unittest.TestCase):
10
11 def test_unicode_literals(self):
Ezio Melottie9615932010-01-24 19:26:24 +000012 self.assertIsInstance("", str)
Benjamin Peterson9aebc612008-10-26 20:58:53 +000013
14 def test_print_function(self):
15 with support.captured_output("stderr") as s:
16 print("foo", file=sys.stderr)
17 self.assertEqual(s.getvalue(), "foo\n")
18
19
20def test_main():
21 support.run_unittest(TestMultipleFeatures)