'Tests password reset behavior for user with password marked UNUSABLE_PASSWORD_PREFIX'

@patch('student.views.render_to_string', Mock(side_effect=mock_render_to_string, autospec=True))
def test_user_bad_password_reset(self):

    bad_pwd_req = self.request_factory.post('/password_reset/', {'email': self.user_bad_passwd.email})
    bad_pwd_resp = password_reset(bad_pwd_req)
    self.assertEquals(bad_pwd_resp.status_code, 200)
    obj = json.loads(bad_pwd_resp.content)
    self.assertEquals(obj, {'success': True, 'value': "('registration/password_reset_done.html',    [])"})
    self.assert_no_events_were_emitted()
