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

   #-----------------------------------------------------------------------
dataset/ETHPy150Open nasa/mplStyle/mplStyle/test/test_MplAxesStyle.py/TestMplAxesStyle.checkElement/original