Resolve support for Django 2.0
This commit is contained in:
parent
f9354d9aeb
commit
fbfb6da975
32 changed files with 132 additions and 131 deletions
|
|
@ -188,7 +188,8 @@ class TestDefaultAccountAuth(EvenniaTest):
|
|||
from django.core.exceptions import ValidationError
|
||||
# Try setting some bad passwords
|
||||
for bad in ('', '#', 'TestAccount', 'password'):
|
||||
self.assertRaises(ValidationError, account.set_password, bad)
|
||||
valid, error = account.validate_password(bad, account)
|
||||
self.assertFalse(valid)
|
||||
|
||||
# Try setting a better password (test for False; returns None on success)
|
||||
self.assertFalse(account.set_password('Mxyzptlk'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue