def test_start_delegates_to_platform_component(service, tmpdir): service.start() # The platform specific start() was called assert service._platform_started # The default implementation was not called assert not tmpdir.join("called").check()
def test_start_runs_executable_if_no_platform_specific_start(service, tmpdir): service.start() assert tmpdir.join("called").check()
def test_start_runs_executable_if_no_platform_component(service, tmpdir): service.start() assert tmpdir.join('called').check()