Opened 16 years ago
Closed 16 years ago
#12124 closed (invalid)
auth unit test bug: u.has_usable_password()
| Reported by: | dj_tw | Owned by: | nobody |
|---|---|---|---|
| Component: | Contrib apps | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
in auth module's tests dir, in the file basic.py, on line 15:
the password was set to unusable on line 10 and saved.
the response to line 14 should be True instead of False:
8 >>> u.check_password('testpw')
9 True
10 >>> u.set_unusable_password()
11 >>> u.save()
12 >>> u.check_password('testpw')
13 False
14 >>> u.has_usable_password()
15 False
Change History (2)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Try formatting the quoted code section:
8 >>> u.check_password('testpw') 9 True 10 >>> u.set_unusable_password() 11 >>> u.save() 12 >>> u.check_password('testpw') 13 False 14 >>> u.has_usable_password() 15 False