It tried to use the pbkdf2 hash as the password. Use the username instead, as that
is what create_user sets.
Then it compared the test user username to testuser, rather than the username, which
is dynamically generated. Compare to the generated username.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Stephen Finucane <stephenfinucane@hotmail.com>
def test_login(self):
self.get(reverse('auth_login'))
self.enter_text('username', self.user.username)
- self.enter_text('password', self.user.password)
+ self.enter_text('password', self.user.username)
self.click('input[value="Login"]')
dropdown = self.wait_until_visible('a.dropdown-toggle strong')
- self.assertEqual(dropdown.text, 'testuser')
+ self.assertEqual(dropdown.text, self.user.username)