#NEWLINE# def testGetV3ExtensionFieldsFromSequenceWhenOIDBasicConstraintPaths( self ) : #NEWLINE# #INDENT# 'Test _GetV3ExtensionFieldsFromSequence().' #NEWLINE# self . mox . StubOutWithMock ( x509 . der_decoder , 'decode' , True ) #NEWLINE# e_basic_const = univ . OctetString ( 'e_basic_const' ) #NEWLINE# d_basic_const = ( ( True , ) , [ 'unsupported path data' ] ) #NEWLINE# x509 . der_decoder . decode ( e_basic_const ) . AndReturn ( d_basic_const ) #NEWLINE# seq = ( ( 'junk' , ( 'value' , 'value' ) ) , ( x509 . OID_X509V3_BASIC_CONSTRAINTS , output ) ) #NEWLINE# output = { #NEWLINE# #INDENT# 'may_act_as_ca' : True , #NEWLINE# #UNINDENT# } #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertRaises ( x509 . CertificateParseError , self . x . _GetV3ExtensionFieldsFromSequence , seq ) #NEWLINE# self . mox . VerifyAll ( )