How to test RPC of SOAP web services?
<p>I am currently learning building a SOAP web services with django and spyne. I have successfully tested my model using unit test. However, when I tried to test all those @rpc functions, I have no luck there at all.</p>

<p>What I have tried in testing those @rpc functions:
1. Get dummy data in model database
2. Start a server at localhost:8000
3. Create a suds.Client object that can communicate with localhost:8000
4. Try to invoke @rpc functions from the suds.Client object, and test if the output matches what I expected.</p>

<p>However, when I run the test, I believe the test got blocked by the running server at localhost:8000 thus no test code can be run while the server is running.</p>

<p>I tried to make the server run on a different thread, but that messed up my test even more.</p>

<p>I have searched as much as I could online and found no materials that can answer this question.</p>

<p>TL;DR: how do you test @rpc functions using unit test?</p>

<p>See <a href="http://stackoverflow.com/questions/19383937/testing-spyne-application">Testing Spyne application</a> </p>

<p>Ignore the remaining, it's the trivial answer guard.</p>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

python django testing rpc spyne