Your IP : 216.73.216.213
�
��\c @ sH d Z d d l Z d d l Z d d l m Z d e f d � � YZ d S( s� A fake shutil module implementation that uses fake_filesystem for
unit tests.
Note that only `shutildisk_usage()` is faked, the rest of the functions shall
work fine with the fake file system if `os`/`os.path` are patched.
:Includes:
FakeShutil: Uses a FakeFilesystem to provide a fake replacement for the
shutil module.
:Usage:
The fake implementation is automatically involved if using
`fake_filesystem_unittest.TestCase`, pytest fs fixture,
or directly `Patcher`.
i����N( t IS_PY2t FakeShutilModulec B sJ e Z d Z e d � � Z d � Z e j d k r? d � Z n d � Z RS( sK Uses a FakeFilesystem to provide a fake replacement for shutil module.
c C s t s
d Sd S( sq Return the list of patched function names. Used for patching
functions imported from the module.
t
disk_usage( R ( ( R ( ( ( sP /opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyt dir( s c C s | | _ t | _ d S( s� Construct fake shutil module using the fake filesystem.
Args:
filesystem: FakeFilesystem used to provide file system information
N( t
filesystemt shutilt _shutil_module( t selfR ( ( sP /opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyt __init__1 s i c C s | j j | � S( s Return the total, used and free disk space in bytes as named tuple
or placeholder holder values simulating unlimited space if not set.
New in Python 3.3.
Args:
path: defines the filesystem device which is queried
( R t get_disk_usage( R t path( ( sP /opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyR ; s c C s t | j | � S( s; Forwards any non-faked calls to the standard shutil module.( t getattrR ( R t name( ( sP /opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyt __getattr__E s ( i i (
t __name__t
__module__t __doc__t staticmethodR R t syst version_infoR R
( ( ( sP /opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyR $ s
( R R R t pyfakefs.helpersR t objectR ( ( ( sP /opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyt <module> s