Replace the in-house stubbing by the facilities offered by pyfakefs for running tests. We don't use `io.open` anymore, because pyfakefs does not stub it correctly. We rely on a patched version of pyfakefs, as a few bug remain in the official repo.
1. Install the dependencies using: > pip install -r requirements.txt 2. Run the tests using: > python -m unittest discover If you use nosetest, it will complain about addExpectedFailure, which you can safely disregard.