def setUp(self): self.interface = Mock() dimensions = Dimensions(24, 80) self.display = Display(self.interface, dimensions) self.display._flush_range = Mock()
def setUp(self): self.terminal = Mock() self.terminal.display.dimensions = Dimensions(24, 80) self.session = VT100Session(self.terminal, None) self.session.host_process = Mock()
def setUp(self): self.interface = Mock() dimensions = Dimensions(24, 80) self.display = Display(self.interface, dimensions) patcher = patch('oec.display.load_address_counter_hi') self.load_address_counter_hi_mock = patcher.start() patcher = patch('oec.display.load_address_counter_lo') self.load_address_counter_lo_mock = patcher.start() self.addCleanup(patch.stopall)