Ejemplo n.º 1
0
def get_service_manager_from_init_and_run(init_name, run_mock):
    command_generator = service._command_generators[init_name]
    result_parser = service._result_parsers[init_name]
    service_manager = service._service_managers[init_name]
    service_command_generator = service._ServiceCommandGenerator(
        command_generator)
    service_result_parser = service._ServiceResultParser(result_parser)
    return service_manager(service_command_generator, service_result_parser, run_mock)
Ejemplo n.º 2
0
def get_service_manager_from_init_and_run(init_name, run_mock):
    command_generator = service._command_generators[init_name]
    result_parser = service._result_parsers[init_name]
    service_manager = service._service_managers[init_name]
    service_command_generator = service._ServiceCommandGenerator(
                                                 command_generator)
    service_result_parser = service._ServiceResultParser(result_parser)
    return service_manager(service_command_generator, service_result_parser, run_mock)
Ejemplo n.º 3
0
 def setUp(self):
     self.service_name = "fake_service"
     init_name = "init"
     command_generator = service._command_generators[init_name]
     self.service_command_generator = service._ServiceCommandGenerator(
         command_generator)
Ejemplo n.º 4
0
 def setUp(self):
     self.service_name = "fake_service"
     init_name = "init"
     command_generator = service._command_generators[init_name]
     self.service_command_generator = service._ServiceCommandGenerator(
         command_generator)