mockfs -- A simple mock filesystem for unit tests mockfs makes it possible to test filesystem-dependent code by replacing functions from the os and glob modules. Documentation Source