~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to tests/regressiontests/admin_scripts/management/commands/noargs_command.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-15 19:15:33 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081115191533-xbt1ut2xf4fvwtvc
Tags: 1.0.1-0ubuntu1
* New upstream release:
  - Bug fixes.

* The tests/ sub-directory appaers to have been dropped upstream, so pull
  our patch to workaround the tests and modify the rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from django.core.management.base import NoArgsCommand
2
 
# Python 2.3 doesn't have sorted()
3
 
try:
4
 
    sorted
5
 
except NameError:
6
 
    from django.utils.itercompat import sorted
7
 
 
8
 
class Command(NoArgsCommand):
9
 
    help = "Test No-args commands"
10
 
    requires_model_validation = False
11
 
 
12
 
 
13
 
    def handle_noargs(self, **options):
14
 
        print 'EXECUTE:NoArgsCommand options=%s' % sorted(options.items())