#NEWLINE# def testGetCertSequencesFromTopSequence( self ) : #NEWLINE# #INDENT# 'Test GetCertSequencesFromTopSequence().' #NEWLINE# seq = ( ( 0 , 1 , 2 ) , ) #NEWLINE# self . mox . StubOutWithMock ( self . x , '_GetFieldsFromSequence' ) #NEWLINE# self . mox . StubOutWithMock ( self . x , '_GetSignatureAlgorithmFromSequence' ) #NEWLINE# self . mox . StubOutWithMock ( self . x , '_GetSignatureFromSequence' ) #NEWLINE# self . x . _GetFieldsFromSequence ( seq [ 0 ] [ 0 ] ) . AndReturn ( { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . x . _GetSignatureAlgorithmFromSequence ( seq [ 0 ] [ 1 ] ) . AndReturn ( { #NEWLINE# #INDENT# 'b' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . x . _GetSignatureFromSequence ( seq [ 0 ] [ 2 ] ) . AndReturn ( { #NEWLINE# #INDENT# 'c' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# o = self . x . _GetCertSequencesFromTopSequence ( seq ) #NEWLINE# self . assertEqual ( o , { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : 1 , #NEWLINE# 'c' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . mox . VerifyAll ( )