blob: 57cbe9f0d5d958348d6fb8025c2ffab34b752885 [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):
12 self.assertTrue(isinstance("", str))
13
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)