'Initialize a stand-alone service class

The context here is that i have a task to write unit test for that service.

Supposedly, i have a win32 service class.

Like this class TestService(win32serviceutil.ServiceFramework).

Is there any way to create an instance of this class without using servicemanager ?

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source