def testGetV3ExtensionFieldsFromSequenceWhenOIDBasicConstraintPaths(self):
    self.mox.StubOutWithMock(x509.der_decoder, 'decode', True)
    e_basic_const = univ.OctetString('e_basic_const')
    d_basic_const = ((True,), ['unsupported path data'])

    x509.der_decoder.decode(e_basic_const).AndReturn(d_basic_const)

    seq = (
      ('junk', ('value', 'value')),
      (x509.OID_X509V3_BASIC_CONSTRAINTS, e_basic_const),
    )

    output = {
        'may_act_as_ca': True,
    }

    self.mox.ReplayAll()
    self.assertRaises(
        x509.CertificateParseError,
        self.x._GetV3ExtensionFieldsFromSequence,
        seq)
    self.mox.VerifyAll()
Set layout of this component
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testGetV3ExtensionFieldsFromSequenceWhenOIDBasicConstraintPaths--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/eventdisplay.py/EventMessageWidget.__set_layout