VCR, as far as i know only works for HTTP. It is very easy to use, and unfortunately i didn&#39;t find a match for it in python. It seems people are more concerned about building &quot;My new cool ruby-like test runner&quot;.<div>

<br></div><div>The coding strategy to make VCR was to monkeypatch the Http Libraries, like the basic Net::Http, since there are a lot of http clients use it under the hood. And for the ones who don&#39;t, the author wrote an adapter for the most popular ones[1].</div>

<div><br></div><div>I think similar approach can be used with python.</div><div><br></div><div>1: <a href="https://github.com/myronmarston/vcr/tree/master/lib/vcr/library_hooks">https://github.com/myronmarston/vcr/tree/master/lib/vcr/library_hooks</a><br>

<div><br><div class="gmail_quote">2012/3/27 Andrea Crotti <span dir="ltr">&lt;<a href="mailto:andrea.crotti.0@gmail.com">andrea.crotti.0@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 03/27/2012 12:55 PM, Benji York wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Mar 27, 2012 at 6:48 AM, Benji York&lt;<a href="mailto:benji@benjiyork.com" target="_blank">benji@benjiyork.com</a>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Mar 27, 2012 at 5:31 AM, Andrea Crotti<br>
&lt;<a href="mailto:andrea.crotti.0@gmail.com" target="_blank">andrea.crotti.0@gmail.com</a>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I just saw this library in action and I think it&#39;s great:<br>
<br>
<a href="https://github.com/myronmarston/vcr" target="_blank">https://github.com/<u></u>myronmarston/vcr</a><br>
<br>
is there anything similar also in Python maybe??<br>
</blockquote>
The Zope community used to use tcpwatch<br>
(<a href="http://pypi.python.org/pypi/tcpwatch" target="_blank">http://pypi.python.org/pypi/<u></u>tcpwatch</a>) in a similar way to record<br>
functional tests (<a href="http://wiki.zope.org/zope3/fdoctests.html" target="_blank">http://wiki.zope.org/zope3/<u></u>fdoctests.html</a>).<br>
</blockquote>
Heh.  Now that I&#39;ve read more carefully I can see that VCR does nothing<br>
like I thought. :)<br>
</blockquote>
<br></div>
What did you think it was doing?<br>
<br>
I think it&#39;s quite cool because it records the http transactions in yaml format, and<br>
they can be easily added to the repository to be played again during the next run of the test.<br>
<br>
I wonder if that only works with HTTP or is possible to generalise to any protocol.. (I don&#39;t see why not)<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org" target="_blank">testing-in-python@lists.idyll.<u></u>org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/<u></u>listinfo/testing-in-python</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Vanderson Mota dos Santos<br><br>
</div></div>