def test_pause_toggle_pauses_when_not_paused(self): self.factory.gui.output_window.paused = False pause_toggle(self.factory.realm) assert self.factory.gui.output_window.pause.called
def test_pause_toggle_unpauses_when_paused(self): self.factory.gui.output_window.paused = True pause_toggle(self.factory.realm) assert self.factory.gui.output_window.unpause.called