def test_main_setup_execution(self): """main_setup and main_execution""" p = Program() # setup phase p.main_setup() # calls setup_logging correctly assert len(new_setup_logging.calls) == 1
def create_main_tester(self): p = Program() p.main_setup = new_main_setup p.parser = FakeParser.parser.Parser('config') return p