def setUp(self): self.engine = rpncalculator.Engine()
def setUp(self): self.engine = rpncalculator.Engine(auto_register=False)
def setUp(self): self.parser = rpncalculator.Parser() self.engine = rpncalculator.Engine() self.engine.push = mock.MagicMock(return_value=None) self.engine.execute = mock.MagicMock(return_value=0)