0013-misc-pylint-fix-assert-on-string-literal-52630.patch
tests/test_register.py | ||
---|---|---|
211 | 211 |
resp = app.get('/ident/password/forgotten') |
212 | 212 |
resp.forms[0]['username'] = 'bar' # this account doesn't exist |
213 | 213 |
resp = resp.forms[0].submit() |
214 |
assert 'There is no user with that name or it has no email contact.' |
|
214 |
assert 'There is no user with that name or it has no email contact.' in resp
|
|
215 | 215 | |
216 | 216 |
resp = app.get('/ident/password/forgotten') |
217 | 217 |
resp.forms[0]['username'] = 'foo' # this account doesn't have an email |
218 | 218 |
resp = resp.forms[0].submit() |
219 |
assert 'There is no user with that name or it has no email contact.' |
|
219 |
assert 'There is no user with that name or it has no email contact.' in resp
|
|
220 | 220 | |
221 | 221 |
user = pub.user_class.get(user_id) |
222 | 222 |
user.email = 'foo@localhost' |
223 |
- |