summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_management.py
diff options
context:
space:
mode:
authorTzu-ping Chung <uranusjr@gmail.com>2015-09-25 02:18:58 +0800
committerTim Graham <timograham@gmail.com>2015-09-24 19:45:48 -0400
commit9581ac39a8b913db22f9874ae04aad46548dcdeb (patch)
tree6496a657624c5b65000707e3a16cd0e9c2803d86 /tests/auth_tests/test_management.py
parent9b5f1880e9697e009d5bfda6df6c5b5f35ea02e9 (diff)
[1.9.x] Fixed #25457 -- Improved formatting of password validation errors in management command output.
Backport of 7372cdebed19a9d8e5527823c1e6825156babf98 from master
Diffstat (limited to 'tests/auth_tests/test_management.py')
-rw-r--r--tests/auth_tests/test_management.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py
index 70d5ceac5b..435bc9e1e5 100644
--- a/tests/auth_tests/test_management.py
+++ b/tests/auth_tests/test_management.py
@@ -160,7 +160,7 @@ class ChangepasswordManagementCommandTestCase(TestCase):
abort_msg = "Aborting password change for user 'joe' after 3 attempts"
with self.assertRaisesMessage(CommandError, abort_msg):
command.execute(username="joe", stdout=self.stdout, stderr=self.stderr)
- self.assertIn('This password is entirely numeric.', self.stdout.getvalue())
+ self.assertIn('This password is entirely numeric.', self.stderr.getvalue())
def test_that_changepassword_command_works_with_nonascii_output(self):
"""