def testGetV3ExtensionFieldsFromSequenceWhenOIDSubjectAltNameBadForm(self):
    e_mspn = univ.OctetString('mspn der encoded wrong encapsulation')
    d_mspn = (
        (x509.OID_MS_NT_PRINCIPAL_NAME, 'foo'),
    )

    seq = (
      ('junk', ('value', 'value')),
      (x509.OID_X509V3_SUBJECT_ALT_NAME, e_mspn),
    )

    output = {
        'subject_alt_name': 'X_MS_NT_Principal_Name=foo',
    }

    self.mox.ReplayAll()
    self.assertRaises(
        x509.CertificateParseError,
        self.x._GetV3ExtensionFieldsFromSequence,
        seq)
    self.mox.VerifyAll()
Checks for an inner ``Meta`` class with a ``mixin_for``
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testGetV3ExtensionFieldsFromSequenceWhenOIDSubjectAltNameBadForm--crossover with--dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/utils/models.py/ModelMixinBase.__new__