<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<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 tabindex="-1">
<div id="divRpF820172" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Kevin Benton [blak111@gmail.com]<br>
<b>Sent:</b> Tuesday, February 17, 2015 2:56 PM<br>
<b>To:</b> Naresh Kumar<br>
<b>Cc:</b> openstack@lists.openstack.org<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="mailto: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="mailto: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>
</body>
</html>