'new_password and confirm_password must match'

def test_mismatching_passwords(self):

    self.login(self.example_email('hamlet'))
    result = self.client_patch('/json/settings', dict(new_password='mismatched_password', confirm_password='not_the_same'))
    self.assert_json_error(result, 'New    password    must    match    confirmation    password!')
