... def test_quit(self): scenario = ''' >>> a = 10 >>> a 10 >>> quit --- not running --- restart >>> a null ''' self.scenario_tester.test(scenario)