#NEWLINE# def testAssembleDNSequence( self ) : #NEWLINE# #INDENT# 'Test _AssembleDNSequence().' #NEWLINE# value = ( ( ( x509 . OID_ID [ 'CN' ] , 'foo' ) , ) , ( ( x509 . OID_ID [ 'OU' ] , 'bar' ) , ) ) #NEWLINE# self . mox . StubOutWithMock ( value . x , '_AttributeValueToString' ) #NEWLINE# self . x . _AttributeValueToString ( 'foo' ) . AndReturn ( 'foo' ) #NEWLINE# self . x . _AttributeValueToString ( 'bar' ) . AndReturn ( 'bar' ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( self . x . _AssembleDNSequence ( value ) , 'CN=foo,OU=bar' ) #NEWLINE# self . mox . VerifyAll ( )