diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2017-08-31 14:22:25 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-08-31 09:22:25 -0400 |
| commit | ec6481246a76f6a3339c987f14c3878f55cd7300 (patch) | |
| tree | 8645720b6d8605a8152a289a3255de9930ddf837 /tests/admin_scripts | |
| parent | f0d9ede9e653c03052c5c7fdeae5b88feda267df (diff) | |
Fixed #28524 -- Fixed program name in management commands when using 'python -m django'.
Diffstat (limited to 'tests/admin_scripts')
| -rw-r--r-- | tests/admin_scripts/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index d90456ac13..b8bcea35f0 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -2223,3 +2223,7 @@ class MainModule(AdminScriptTestCase): cmd_out, _ = self.run_django_admin(['--version']) mod_out, _ = self.run_test('-m', ['django', '--version']) self.assertEqual(mod_out, cmd_out) + + def test_program_name_in_help(self): + out, err = self.run_test('-m', ['django', 'help']) + self.assertOutput(out, "Type 'python -m django help <subcommand>' for help on a specific subcommand.") |
