#NEWLINE# def testCreateGetMethods( self ) : #NEWLINE# #INDENT# 'Test the autogenerated methods from CreateGetMethod().' #NEWLINE# names = [ 'Issuer' , 'Subject' , 'DatetimeNotValidBefore' , 'DatetimeNotValidAfter' , 'FieldsData' , 'SignatureData' , 'SignatureAlgorithm' , 'SerialNumber' , 'EntireCertData' , 'PublicKey' , 'MayActAsCA' , 'KeyUsage' , 'SubjectAltName' ] #NEWLINE# for name in names : #NEWLINE# #INDENT# self . assertTrue ( hasattr ( self . x , ( 'Get%s' % name ) ) , ( 'has method Get%s' % name ) ) #NEWLINE# self . assertTrue ( ( type ( getattr ( self . x , ( 'Get%s' % name ) ) ) is types . MethodType ) , ( 'Get%s is a method' % name ) )