title: Run a twisted trial test within a program
body: <p>I would like to write a python program that runs a twisted test without having to run the program as a test.</p>
  
  <p>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.</p>
  
  <p>My motivation is to use the properties of twisted trial tests inside the program (especially the  control on the reactor <code>Clock</code> object that allows me to simulate the passing of time).</p>
  
  <p>I've written the code for the test following the twisted event-driven guide and now I want to integrate it in a program.</p>
  
  <p>Is it possible? Is it something that somebody has already done before? (couldn't find info) What the best way to do it?</p>