blob: ed03a07037aaa15ffd22a4470953f36ecc3865ab [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
Mark Dickinsoneceebeb2011-06-25 13:29:14 +02006from test import support
Benjamin Peterson9aebc612008-10-26 20:58:53 +00007
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)