diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-11-18 11:10:50 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-11-18 11:10:50 +0000 |
| commit | 2dfe3ad657f4372618ba9df8fc7e298511113dd4 (patch) | |
| tree | f2c077fe71e71832b1cd0bc4175d97010039cc53 /tests/regressiontests/bash_completion/management/commands | |
| parent | bb4062d53b0caae84732c5940a97e3da1b14823f (diff) | |
Added tests for the bash completion script from [11526]. Thanks to Eric Holscher.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/bash_completion/management/commands')
| -rw-r--r-- | tests/regressiontests/bash_completion/management/commands/__init__.py | 0 | ||||
| -rw-r--r-- | tests/regressiontests/bash_completion/management/commands/test_command.py | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/regressiontests/bash_completion/management/commands/__init__.py b/tests/regressiontests/bash_completion/management/commands/__init__.py new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/regressiontests/bash_completion/management/commands/__init__.py diff --git a/tests/regressiontests/bash_completion/management/commands/test_command.py b/tests/regressiontests/bash_completion/management/commands/test_command.py new file mode 100644 index 0000000000..7e478066f8 --- /dev/null +++ b/tests/regressiontests/bash_completion/management/commands/test_command.py @@ -0,0 +1,13 @@ +import sys, os +from optparse import OptionParser, make_option + +from django.core.management.base import BaseCommand + +class Command(BaseCommand): + option_list = BaseCommand.option_list + ( + make_option("--list", action="store_true", dest="list", + help="Print all options"), + ) + + def handle(self, *args, **options): + pass |
