tag:blogger.com,1999:blog-6463044249707468993.post5008742827075321798..comments2023-11-20T04:45:57.575-08:00Comments on Experiments in public: Mocking snakesAlec Munrohttp://www.blogger.com/profile/13172977631007255821noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6463044249707468993.post-78621954564877091252011-09-13T06:11:26.646-07:002011-09-13T06:11:26.646-07:00As it turns out, FlexMock does indeed verify expec...As it turns out, FlexMock does indeed verify expectations automatically, as long as it can integrate with your test runner. Unfortunately, I've been using PyDev for development, and it uses Exceptions for flow control at a certain point, which ends up leaving an exception in sys.exc_info, which FlexMock interprets as a reason not to do the verifying.<br />I've filed a bug here:<br />http://sourceforge.net/tracker/?func=detail&aid=3408057&group_id=85796&atid=577329<br />and hopefully I'll be able to submit a patch shortly.Alec Munrohttps://www.blogger.com/profile/13172977631007255821noreply@blogger.comtag:blogger.com,1999:blog-6463044249707468993.post-16414406082985134322011-09-12T08:42:13.084-07:002011-09-12T08:42:13.084-07:00tldr; ;-) Yet, but I will! Thanks for putting this...tldr; ;-) Yet, but I will! Thanks for putting this up: I've been planning to get around to investigating mocking in python for some time - your post looks like a good general overview and jumping off point.Ross Reedstromhttps://www.blogger.com/profile/05592010675819388393noreply@blogger.comtag:blogger.com,1999:blog-6463044249707468993.post-42772810406454745992011-09-11T18:29:26.975-07:002011-09-11T18:29:26.975-07:00Thanks to a quick chat with Michael Foord, I reali...Thanks to a quick chat with Michael Foord, I realized that my link, and some of my understanding, for Mock, was pointing to a different project.<br /><br />I've updated the link, and removed some of the inaccurate commentary, but the new documentation he pointed me to has quite a lot to digest, so I'll probably have to update this again in a couple of days with further conclusions.Alec Munrohttps://www.blogger.com/profile/13172977631007255821noreply@blogger.comtag:blogger.com,1999:blog-6463044249707468993.post-9323079362048368612011-09-08T11:36:31.105-07:002011-09-08T11:36:31.105-07:00Well, it's finally up. This ended up being a m...Well, it's finally up. This ended up being a much bigger undertaking then I had expected, but it still feels incomplete.<br /><br />I'm very interested in any feedback, to either expand this post, or perhaps create a follow-up.Alec Munrohttps://www.blogger.com/profile/13172977631007255821noreply@blogger.com