[Openstack] [Neutron] test_mechanism_odl

Akihiro Motoki amotoki at gmail.com
Tue Feb 17 14:20:23 UTC 2015


I think Neutron developer docs helps you.

http://docs.openstack.org/developer/neutron/devref/development.environment.html#running-individual-tests

2015年2月17日火曜日、Naresh Kumar<NARESH.SAADHU at lnttechservices.com>さんは書きました:

>  Hi,
> 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?
>
>  Regards,
> Naresh.
>  ------------------------------
> *From:* Kevin Benton [blak111 at gmail.com
> <javascript:_e(%7B%7D,'cvml','blak111 at gmail.com');>]
> *Sent:* Tuesday, February 17, 2015 2:56 PM
> *To:* Naresh Kumar
> *Cc:* openstack at lists.openstack.org
> <javascript:_e(%7B%7D,'cvml','openstack at lists.openstack.org');>
> *Subject:* Re: [Openstack] [Neutron] test_mechanism_odl
>
>   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.
>
> http://www.voidspace.org.uk/python/mock/
> On Feb 17, 2015 1:13 AM, "Naresh Kumar" <NARESH.SAADHU at lnttechservices.com
> <javascript:_e(%7B%7D,'cvml','NARESH.SAADHU at lnttechservices.com');>>
> wrote:
>
>>  Hi,
>> 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.
>>
>>  Thanks in advance,
>> Naresh.
>>
>> *L&T Technology Services Ltd*
>>
>> www.LntTechservices.com <http://www.lnttechservices.com/>
>>
>> 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.
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> <javascript:_e(%7B%7D,'cvml','openstack at lists.openstack.org');>
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>    *L&T Technology Services Ltd*
>
> www.LntTechservices.com <http://www.lnttechservices.com/>
>
> 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.
>


-- 
Akihiro Motoki <amotoki at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150217/d22a1448/attachment.html>


More information about the Openstack mailing list