Ticket #10908: 10908.diff
File 10908.diff, 843 bytes (added by , 15 years ago) |
---|
-
topics/testing.txt
686 686 user accounts that are valid on your production site will not work 687 687 under test conditions. You'll need to create users as part of the test 688 688 suite -- either manually (using the Django model API) or with a test 689 fixture. 689 fixture. If your test user has a password, you must use either 690 ``User.objects.create()`` and 691 :meth:`~django.contrib.auth.models.User.set_password()` or the 692 :meth:`~django.contrib.auth.models.UserManager.create_user` helper 693 method to ensure the user password is hashed so ``login()`` will work 694 correctly. 690 695 691 696 .. method:: Client.logout() 692 697