a_mock_object[&#39;key&#39;] = value<div><br></div><div>I&#39;m trying to mock the Mechanize browser class, which allows form input to be set by item assignment. I was hoping I could just call should_receive(&#39;__setitem__&#39;), but it looks like is prefixing the method name with &quot;Mock&quot;.</div>

<div><br></div><div>Something like what mox.py has. If you look at the mox.py source code line 429, you&#39;ll see what I&#39;m talking about...</div><div><br></div><div><a href="http://code.google.com/p/pymox/source/browse/trunk/mox.py?r=26">http://code.google.com/p/pymox/source/browse/trunk/mox.py?r=26</a></div>

<div><br></div><div>This issue aside, I really like Flexmock. It&#39;s simple, to the point, fits exactly where I need it, and it&#39;s api makes it super easy to read!</div><div><br></div><div>Thanks!</div><div><br clear="all">

Eric<br>
<br><br><div class="gmail_quote">On Sun, Jul 3, 2011 at 6:17 PM, Herman Sheremetyev <span dir="ltr">&lt;<a href="mailto:herman@swebpage.com">herman@swebpage.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

What do you mean by item assignment support?<br>
<div class="im"><br>
On Mon, Jul 4, 2011 at 4:26 AM, Eric Henry &lt;<a href="mailto:henryer2@msu.edu">henryer2@msu.edu</a>&gt; wrote:<br>
&gt; Am I missing something, or does flexmock lack item assignment support?<br>
&gt; Eric<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; testing-in-python mailing list<br>
&gt; <a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
&gt; <a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>