Hey,<br><br><br>In order to properly test txievery (a twisted library for dealing with Paypal&#39;s APIs), I&#39;m building a mock Paypal server. The idea is to run the same high-level tests (which basically use the API and eventually make it make real HTTPS requests) against both the mock server and the Paypal Sandbox.<br>


<br>The problem is that using the Paypal Sandbox requires extra information: specifically, username, password, and an SSL certificate (I don&#39;t intend to support &quot;signature&quot; authentication. It&#39;s a horrible alternative for environments too stupid to make requests given a client cert).  My mock sandbox also requires all of that, but I just have fake credentials. When you run the test suite against the Paypal Sandbox, obviously you&#39;re going to need Paypal-blessed credentials.<br>


<br>The obvious solution is to have a makeClient function defined in module scope for the given test module. I could then have a bin/liveTest.py that takes a username, password and cert, and monkeypatches that module. I&#39;m assuming it can&#39;t be hard to tell trial to just take a test module and run it...<br>


<br>Are there any better ways to pass test data to trial?<br><br>cheers<br>lvh<br>