Commit 520c670b authored by Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss
Browse files

[1.0.X] Fixed a sloppy test auth test. [10400] revealed that the auth test was...

[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.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 734a3ac7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ True
#
>>> from django.core.management import call_command

>>> call_command("createsuperuser", noinput=True, username="joe", email="joe@somewhere.org")
>>> call_command("createsuperuser", interactive=False, username="joe", email="joe@somewhere.org")
Superuser created successfully.

>>> u = User.objects.get(username="joe")