MongoEngine/mongoengine — pull request #543 by castarco (2013-12-30 16:52:43+00:00)
Title: Modified pymongo/connection to allow mocking the connection with MongoMo...

Modified pymongo/connection to allow mocking the connection with MongoMock and similar libraries.

This is an experiment, if you think that this is not the correct way then I'm open to better proposals. My aim is to decouple a little bit MongoEngine from pyMongo in order to allow testing without network connection or the need to install Mongo in our machines.

This pull request is not enough to achieve my goal. I've pull requested another little change to MongoMock.

Thanks for your attention.