[openstack-dev] [nova] Do we have some guidelines for mock, stub, mox when writing unit test?

Boris Pavlovic boris at pavlovic.me
Sun Nov 10 15:09:32 UTC 2013


Jay,


I am not 100% sure. But personally for me mock are the best choice. 1) py3
support  2) simple for usage.


Best regards,
Boris Pavlovic
---
Mirantis Inc.



On Sun, Nov 10, 2013 at 5:40 PM, Jay Lau <jay.lau.513 at gmail.com> wrote:

> Hi,
>
> I noticed that we are now using mock, mox and stub for unit test, just
> curious do we have any guidelines for this, in which condition shall we use
> mock, mox or stub?
>
> Thanks,
>
> Jay
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131110/a6fc3dec/attachment.html>


More information about the OpenStack-dev mailing list