def testMove(self): self.frame.ProcessEvent(wx.MoveEvent((200, 200))) self.tracker.savePosition() #The move is not processed, dunno why: self.assertEqual((100, 100), eval(self.settings.get(self.section, 'position')))
def test_MoveEvent_ctor(self): evt = wx.MoveEvent((1,1))
def test_move(self): self.frame.Maximize(False) self.frame.Iconize(False) self.frame.ProcessEvent(wx.MoveEvent((200, 200))) self.assertEqual((200, 200), self.settings.getvalue(self.section, 'position'))