First, when I say a demon, I do not necessarily mean an application that was created as such, but just one that is designed to run in this way; in this case, the HTTP load balancer component.
The essence of the problem is that when you perform functional testing on something like a Flask application, you can initialize the application and test it in the same process. When you test a network daemon, as in my case, it needs to be run in a separate process. So my question is: are there any installed tools or methods for this? My intuitive approach would be to spawn the process during the test setup, run the tests against it, making requests with something like httplib2, and then kill it during the break. However, this is a bit fragile, and I wonder if there are more elegant approaches.
source share