'Now test the exception cases with of reset_password called with invalid email.'

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

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