Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/g/e/gevent-fastcgi-HEAD/gevent_fastcgi/test/base/test_utils.py   gevent-fastcgi(Download)
    def test_pack_unpack_end_request(self):
        from ...const import FCGI_UNKNOWN_ROLE
        from ...utils import pack_end_request, unpack_end_request
 
        raw_data = (924, FCGI_UNKNOWN_ROLE)
        assert raw_data == unpack_end_request(pack_end_request(*raw_data))

src/g/e/gevent-fastcgi-HEAD/gevent_fastcgi/test/server/test_server.py   gevent-fastcgi(Download)
)
from ...base import Record
from ...utils import (
    pack_pairs, unpack_pairs, pack_begin_request, unpack_end_request)
from ..utils import (
                    elif record.type == FCGI_END_REQUEST:
                        response.app_status, response.request_status = (
                            unpack_end_request(record.content))
                    else:
                        self.fail('Unexpected record type %s' % record.type)

src/g/e/gevent-fastcgi-HEAD/gevent_fastcgi/test/server/test_connection_handler.py   gevent-fastcgi(Download)
 
from ...base import InputStream, Record
from ...utils import (
    pack_begin_request,
    pack_pairs,
        assert record.type == FCGI_END_REQUEST
        assert record.request_id != FCGI_NULL_REQUEST_ID
        app_status, proto_status = unpack_end_request(record.content)
        assert proto_status == FCGI_UNKNOWN_ROLE