Package pyrobase :: Module testing
[hide private]
[frames] | no frames]

Module testing

source code

Unittest Helpers.

Copyright (c) 2009, 2011 The PyroScope Project <pyroscope.project@gmail.com>

Classes [hide private]
  DictItemIO
StringIO that replaces itself in a dict on close.
Functions [hide private]
 
mockedopen(*args, **kwds)
Mock the open call to use a dict as the file system.
source code
Variables [hide private]
  __package__ = 'pyrobase'
Function Details [hide private]

mockedopen(*args, **kwds)

source code 

Mock the open call to use a dict as the file system.

Parameters:
  • fakefiles - Prepopulated filesystem, this is passed on as the context's target.
Decorators:
  • @contextmanager