Your IP : 216.73.216.213


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pyfakefs/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyc

�
��\c@sHdZddlZddlZddlmZdefd��YZdS(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(tIS_PY2tFakeShutilModulecBsJeZdZed��Zd�Zejdkr?d�Znd�Z	RS(sKUses a FakeFilesystem to provide a fake replacement for shutil module.
    cCsts
dSdS(sqReturn 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.pytdir(scCs||_t|_dS(s�Construct fake shutil module using the fake filesystem.

        Args:
          filesystem:  FakeFilesystem used to provide file system information
        N(t
filesystemtshutilt_shutil_module(tselfR((sP/opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyt__init__1s	icCs|jj|�S(sReturn 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
            (Rtget_disk_usage(Rtpath((sP/opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyR;scCst|j|�S(s;Forwards any non-faked calls to the standard shutil module.(tgetattrR(Rtname((sP/opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyt__getattr__Es(ii(
t__name__t
__module__t__doc__tstaticmethodRRtsystversion_infoRR
(((sP/opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyR$s			
(RRRtpyfakefs.helpersRtobjectR(((sP/opt/alt/python27/lib/python2.7/site-packages/pyfakefs/fake_filesystem_shutil.pyt<module>s