I think Neutron developer docs helps you.<div><br></div><div><span></span><a href="http://docs.openstack.org/developer/neutron/devref/development.environment.html#running-individual-tests">http://docs.openstack.org/developer/neutron/devref/development.environment.html#running-individual-tests</a><br><br>2015$BG/(B2$B7n(B17$BF|2PMKF|!"(BNaresh Kumar<<a href="mailto:NARESH.SAADHU@lnttechservices.com">NARESH.SAADHU@lnttechservices.com</a>>$B$5$s$O=q$-$^$7$?(B:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">
<div>Hi,</div>
<div><span style="font-size:10pt">My Devstack doesn't have this module? Why I am getting module not found error while running the test file. How can I resolve this issue?</span></div>
<div><span style="font-size:10pt"><br>
</span></div>
<div><span style="font-size:10pt">Regards,</span></div>
<div><span style="font-size:10pt">Naresh.</span></div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>From:</b> Kevin Benton [<a href="javascript:_e(%7B%7D,'cvml','blak111@gmail.com');" target="_blank">blak111@gmail.com</a>]<br>
<b>Sent:</b> Tuesday, February 17, 2015 2:56 PM<br>
<b>To:</b> Naresh Kumar<br>
<b>Cc:</b> <a href="javascript:_e(%7B%7D,'cvml','openstack@lists.openstack.org');" target="_blank">openstack@lists.openstack.org</a><br>
<b>Subject:</b> Re: [Openstack] [Neutron] test_mechanism_odl<br>
</font><br>
</div>
<div></div>
<div>
<p dir="ltr">Mock is a library used to monkey patch parts of objects and inspect the calls and attribute accesses made. It's frequently used in unit tests to verify the side effects of an operation.
</p>
<p dir="ltr"><a href="http://www.voidspace.org.uk/python/mock/" target="_blank">http://www.voidspace.org.uk/python/mock/</a></p>
<div class="gmail_quote">On Feb 17, 2015 1:13 AM, "Naresh Kumar" <<a href="javascript:_e(%7B%7D,'cvml','NARESH.SAADHU@lnttechservices.com');" target="_blank">NARESH.SAADHU@lnttechservices.com</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi,
<div>I added a mechanism driver similar to mechanism_odl and test file to test my driver in tests/unit/ml2/ folder. When I run this file like "python test_mechanism_xxx.py" it says no module named mock. What is this mock module needed for. Can anyone explain
 this in brief.</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div>Naresh.</div>
</div>
<p><strong>L&T Technology Services Ltd</strong></p>
<p><a href="http://www.lnttechservices.com/" target="_blank">www.LntTechservices.com</a></p>
<p>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.</p>
</div>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="javascript:_e(%7B%7D,'cvml','openstack@lists.openstack.org');" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
</blockquote>
</div>
</div>
</div>
</div>
<p><strong>L&T Technology Services Ltd</strong></p>
<p><a href="http://www.lnttechservices.com/" target="_blank">www.LntTechservices.com</a></p>
<p>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.</p>
</div>

</blockquote></div><br><br>-- <br>Akihiro Motoki <<a href="mailto:amotoki@gmail.com" target="_blank">amotoki@gmail.com</a>><br>