'Test that global request failure packets cause the Deferred to be
erred back.'

def test_REQUEST_FAILURE(self):

    d = self.conn.sendGlobalRequest('request', 'data', True)
    self.conn.ssh_REQUEST_FAILURE('data')
    def check(f):
        self.assertEqual(f.value.data, 'data')
    d.addCallback(self.fail)
    d.addErrback(check)
    return d
