On Feb 16, 2:17 am, Ben Finney <ben+pyt...@benfinney.id.au> wrote: > Lacrima <lacrima.ma...@gmail.com> writes: > > Minimock has wider usage and community, but I have some troubles using > > it. Maybe I am wrong, but with minimock you always have to keep track > > the order of imports in your test modules. Well, may be I just don't > > understand fully how minimock works. > > I'm not sure why you think you need to keep track of the order of > imports. > > Simply set up the mocks as you want them, in your fixtures; then, when > tearing down your fixtures, use ‘minimock.restore()’ to restore the > affected namespaces to their initial state. > > -- > \ “… one of the main causes of the fall of the Roman Empire was | > `\ that, lacking zero, they had no way to indicate successful | > _o__) termination of their C programs.” —Robert Firth | > Ben Finney
Hi Ben! See these two topics: http://groups.google.com/group/minimock-dev/browse_thread/thread/bcbb3b7cc60eb96f http://groups.google.com/group/minimock-dev/browse_thread/thread/c41cd996735ea1a6 There are special cases, which you have to be aware of, if you use minimock. -- http://mail.python.org/mailman/listinfo/python-list