def test_getCertsFromCell_malformed_cert(self):
        lc = test_cert_der
        link_cert = CertsCellPayloadItem(LINK_CERT_TYPE, len(lc), lc)
        ic = test_cert_der[:len(test_cert_der)-1]
        id_cert = CertsCellPayloadItem(ID_CERT_TYPE, len(ic), ic)

        cell = CertsCell.make(0, [link_cert, id_cert])

        self.assertRaises(ValueError,
                          connectionbuildtask._getCertsFromCell,
                          cell)
dataset/ETHPy150Open nskinkel/oppy/oppy/tests/unit/connection/test_connectionbuildtask.py/ConnectionBuildTaskTest.test_getCertsFromCell_malformed_cert/original