Re: [Openstack] [Neutron] test_mechanism_odl

2015-02-17 Thread Akihiro Motoki
nning the test file. How can I resolve this issue? > > Regards, > Naresh. > -- > *From:* Kevin Benton [blak...@gmail.com > ] > *Sent:* Tuesday, February 17, 2015 2:56 PM > *To:* Naresh Kumar > *Cc:* openstack@lists.openstack.org

Re: [Openstack] [Neutron] test_mechanism_odl

2015-02-17 Thread Naresh Kumar
ar Cc: openstack@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.voidsp

Re: [Openstack] [Neutron] test_mechanism_odl

2015-02-17 Thread Kevin Benton
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" wrote: > Hi, > I added a mec

[Openstack] [Neutron] test_mechanism_odl

2015-02-17 Thread Naresh Kumar
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, Nar