def METHOD_NAME(self):
    self.plot.toolBar()
    self.plot.keepDataAspectRatioButton.keepDataAspectRatio()
    self.assertTrue(self.plot.isKeepDataAspectRatio())
    self.plot.keepDataAspectRatioButton.dontKeepDataAspectRatio()
    self.assertFalse(self.plot.isKeepDataAspectRatio())