@json_view(content_type="application/json", validators=(validate_lot_data,), permission='edit_tender')
    def collection_post(self):
        tender = self.request.validated['tender']
        if tender.status not in ['active.enquiries']:
            self.request.errors.add('body', 'data', 'Can\'t add lot in current ({}) tender status'.format(tender.status))
            self.request.errors.status = 403
            return
        lot = self.request.validated['lot']
        tender.lots.append(lot)
        if save_tender(self.request):
            self.LOGGER.info('Created tender lot {}'.format(lot.id),
                        extra=context_unpack(self.request, {'MESSAGE_ID': 'tender_lot_create'}, {'lot_id': lot.id}))
            self.request.response.status = 201
            self.request.response.headers['Location'] = self.request.route_url('Tender Lots', tender_id=tender.id, lot_id=lot.id)
            return {'data': lot.serialize("view")}
Test _GetCertSequencesFromTopSequence().
dataset/ETHPy150Open openprocurement/openprocurement.api/src/openprocurement/api/views/lot.py/TenderLotResource.collection_post--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testGetCertSequencesFromTopSequenceWhenBadTuple