def test_REQUEST_SUCCESS(self):
        """
        Test that global request success packets cause the Deferred to be
        called back.
        """
        d = self.conn.sendGlobalRequest(b'request', b'data', True)
        self.conn.ssh_REQUEST_SUCCESS(b'data')
        def check(data):
            self.assertEqual(data, b'data')
        d.addCallback(check)
        d.addErrback(self.fail)
        return d

        Test that global request success packets cause the Deferred to be
        called back.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_connection.py