'#21649 - Ensure contrib.auth.views.password_change updates the user\'s
session auth hash after a password change so the session isn\'t logged out.'

def test_user_password_change_updates_session(self):

    self.login()
    response = self.client.post('/password_change/', {'old_password': 'password', 'new_password1': 'password1', 'new_password2': 'password1'})
    self.assertRedirects(response, '/password_change/done/')
