[Openstack] mock, mox, stubs, fakes, etc

2012-04-08 Thread Joseph Heck
Poking around through all various mechanisms we have to test and verify OpenStack - does anyone have a concise writeup on the various tools and techniques that we're using? I'm not familiar with the stubs or mock libraries, and a little familiar with mox. Is anyone who is familiar with them

Re: [Openstack] mock, mox, stubs, fakes, etc

2012-04-08 Thread Lorin Hochstein
mox and mock are two competing Python libraries for defining mock objects for unit tests. I think they're basically equivalent in terms of what you can do with them, but they use different styles: In mox the assertions are written before the code under test, and in mock the assertions are

Re: [Openstack] mock, mox, stubs, fakes, etc

2012-04-08 Thread Joseph Heck
Thanks Lorin! That helps me quite a bit. -joe On Apr 8, 2012, at 3:20 PM, Lorin Hochstein wrote: mox and mock are two competing Python libraries for defining mock objects for unit tests. I think they're basically equivalent in terms of what you can do with them, but they use different