mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #18325 -- Wrapped self.stdout/stderr in OutputWrapper class
This commit is contained in:
@@ -11,13 +11,13 @@ class CommandTests(TestCase):
|
||||
out = StringIO()
|
||||
management.call_command('dance', stdout=out)
|
||||
self.assertEqual(out.getvalue(),
|
||||
"I don't feel like dancing Rock'n'Roll.")
|
||||
"I don't feel like dancing Rock'n'Roll.\n")
|
||||
|
||||
def test_command_style(self):
|
||||
out = StringIO()
|
||||
management.call_command('dance', style='Jive', stdout=out)
|
||||
self.assertEqual(out.getvalue(),
|
||||
"I don't feel like dancing Jive.")
|
||||
"I don't feel like dancing Jive.\n")
|
||||
|
||||
def test_language_preserved(self):
|
||||
out = StringIO()
|
||||
|
||||
Reference in New Issue
Block a user