Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Marinello
django-password-reset
Commits
95502613
Commit
95502613
authored
Nov 22, 2014
by
Eduardo Matos
Browse files
replace test method for older versions of unittest
parent
7faa1398
Changes
1
Hide whitespace changes
Inline
Side-by-side
password_reset/tests/tests.py
View file @
95502613
...
...
@@ -112,9 +112,9 @@ class FormTests(TestCase):
'Password from inactive user should '
'not be recovered'
)
self
.
assert
Items
Equal
(
form
.
errors
[
'username_or_email'
],
[
u
"Sorry, this user is inactive and his "
"password can't be recovered."
])
self
.
assertEqual
s
(
form
.
errors
[
'username_or_email'
],
[
u
"Sorry, this user is inactive and his "
"password can't be recovered."
])
# tear down settings
del
settings
.
RECOVER_ONLY_ACTIVE_USERS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment