#NEWLINE# def checkElement( self , testName , values , element ) : #NEWLINE# #INDENT# for property in values : #NEWLINE# #INDENT# expected = values [ property ] #NEWLINE# msg = ( '%s: Incorrect value for property: %s' % ( testName , property ) ) #NEWLINE# getFunc = getattr ( element , ( 'get_%s' % property ) ) #NEWLINE# self . assertEqual ( expected , getFunc ( ) , msg = msg )