@inlineCallbacks
def test_failed_request(self):
    (yield self.get_transport())
    msg = (yield self.tx_helper.make_dispatch_outbound(in_reply_to='xxxx', content='She turned me into a newt!', message_id=1))
    [nack] = (yield self.tx_helper.wait_for_dispatched_events(1))
    self.assert_nack(nack, msg, 'Response to http request failed.')
@inlineCallbacks
def test_failed_request(self):
    (yield self.get_transport())
    msg = (yield self.tx_helper.make_dispatch_outbound(in_reply_to='xxxx', content='She turned me into a newt!', message_id=1))
    [nack] = (yield self.tx_helper.wait_for_dispatched_events(1))
    self.assert_nack(nack, msg, 'Response to http request failed.')