Fixed #31428 -- Allowed empty message in management command self.stdout/err proxies.

This commit is contained in:
François Freitag 2020-04-06 12:12:41 +02:00 committed by Mariusz Felisiak
parent 5fbc0e07a9
commit e03eb8db93
5 changed files with 5 additions and 4 deletions

View file

@ -124,7 +124,7 @@ class CommandTests(SimpleTestCase):
def test_calling_a_command_with_only_empty_parameter_should_ends_gracefully(self):
out = StringIO()
management.call_command('hal', "--empty", stdout=out)
self.assertIn("Dave, I can't do that.\n", out.getvalue())
self.assertEqual(out.getvalue(), "\nDave, I can't do that.\n")
def test_calling_command_with_app_labels_and_parameters_should_be_ok(self):
out = StringIO()