Author: jacob
Date: 2009-04-05 14:01:03 -0500 (Sun, 05 Apr 2009)
New Revision: 10405

Modified:
   django/branches/releases/1.0.X/django/contrib/auth/tests/basic.py
Log:
[1.0.X] Fixed a sloppy test auth test. [10400] revealed that the auth test was 
relying on the weird difference between calling a management from the shell and 
from `call_command`. That this worked in the first case was pretty much an 
accident. Backport of r10404 from trunk.

Modified: django/branches/releases/1.0.X/django/contrib/auth/tests/basic.py
===================================================================
--- django/branches/releases/1.0.X/django/contrib/auth/tests/basic.py   
2009-04-05 19:00:27 UTC (rev 10404)
+++ django/branches/releases/1.0.X/django/contrib/auth/tests/basic.py   
2009-04-05 19:01:03 UTC (rev 10405)
@@ -58,7 +58,7 @@
 #
 >>> from django.core.management import call_command
 
->>> call_command("createsuperuser", noinput=True, username="joe", 
email="j...@somewhere.org")
+>>> call_command("createsuperuser", interactive=False, username="joe", 
email="j...@somewhere.org")
 Superuser created successfully.
 
 >>> u = User.objects.get(username="joe")


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to