0
0
mirror of https://github.com/django/django.git synced 2024-11-22 11:57:34 +01:00
django/tests/test_runner_apps/buffer/tests_buffer.py
2022-02-07 20:37:05 +01:00

15 lines
380 B
Python

import sys
from unittest import TestCase
class WriteToStdoutStderrTestCase(TestCase):
def test_pass(self):
sys.stderr.write("Write to stderr.")
sys.stdout.write("Write to stdout.")
self.assertTrue(True)
def test_fail(self):
sys.stderr.write("Write to stderr.")
sys.stdout.write("Write to stdout.")
self.assertTrue(False)