mirror of
https://github.com/django/django.git
synced 2025-01-01 05:56:09 +00:00
15 lines
380 B
Python
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)
|