Versions issues mongomock was installed from master, not 2.0.0 pip install git+https://github.com/vmalloc/mongomock.git@master