I would like to write a python program that runs a twisted test without having to run the program as a test.
I know it might sound a bit weird, but the program is intended to simulate a twisted connection rather than offering a real one to a user.
My motivation is to use the properties of twisted trial tests inside the program (especially the control on the reactor Clock
object that allows me to simulate the passing of time).
I've written the code for the test following the twisted event-driven guide and now I want to integrate it in a program.
Is it possible? Is it something that somebody has already done before? (couldn't find info) What the best way to do it?