MCPcopy
hub / github.com/django/django / test_program_name_in_help

Method test_program_name_in_help

tests/admin_scripts/tests.py:3319–3325  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3317 """python -m django works like django-admin."""
3318
3319 def test_program_name_in_help(self):
3320 out, err = self.run_test(["-m", "django", "help"])
3321 self.assertOutput(
3322 out,
3323 "Type 'python -m django help <subcommand>' for help on a specific "
3324 "subcommand.",
3325 )
3326
3327
3328class DjangoAdminSuggestions(AdminScriptTestCase):

Callers

nothing calls this directly

Calls 2

run_testMethod · 0.80
assertOutputMethod · 0.80

Tested by

no test coverage detected