@@ -4452,23 +4452,23 @@ def setUp(self):
4452
4452
4453
4453
def testAddNonExistingRealFileRaises (self ):
4454
4454
nonexisting_path = os .path .join ('nonexisting' , 'test.txt' )
4455
- self .assertRaises (OSError , self .filesystem .AddRealFile , nonexisting_path )
4455
+ self .assertRaises (OSError , self .filesystem .add_real_file , nonexisting_path )
4456
4456
self .assertFalse (self .filesystem .Exists (nonexisting_path ))
4457
4457
4458
4458
def testAddNonExistingRealDirectoryRaises (self ):
4459
4459
nonexisting_path = '/nonexisting'
4460
- self .assertRaisesIOError (errno .ENOENT , self .filesystem .AddRealDirectory , nonexisting_path )
4460
+ self .assertRaisesIOError (errno .ENOENT , self .filesystem .add_real_directory , nonexisting_path )
4461
4461
self .assertFalse (self .filesystem .Exists (nonexisting_path ))
4462
4462
4463
4463
def testExistingFakeFileRaises (self ):
4464
4464
real_file_path = __file__
4465
4465
self .filesystem .CreateFile (real_file_path )
4466
- self .assertRaisesIOError (errno .EEXIST , self .filesystem .AddRealFile , real_file_path )
4466
+ self .assertRaisesIOError (errno .EEXIST , self .filesystem .add_real_file , real_file_path )
4467
4467
4468
4468
def testExistingFakeDirectoryRaises (self ):
4469
4469
real_dir_path = os .path .dirname (__file__ )
4470
4470
self .filesystem .CreateDirectory (real_dir_path )
4471
- self .assertRaisesOSError (errno .EEXIST , self .filesystem .AddRealDirectory , real_dir_path )
4471
+ self .assertRaisesOSError (errno .EEXIST , self .filesystem .add_real_directory , real_dir_path )
4472
4472
4473
4473
def checkFakeFileStat (self , fake_file , real_file_path ):
4474
4474
self .assertTrue (self .filesystem .Exists (real_file_path ))
@@ -4502,22 +4502,22 @@ def checkWritableFile(self, fake_file, real_file_path):
4502
4502
4503
4503
def testAddExistingRealFileReadOnly (self ):
4504
4504
real_file_path = __file__
4505
- fake_file = self .filesystem .AddRealFile (real_file_path )
4505
+ fake_file = self .filesystem .add_real_file (real_file_path )
4506
4506
self .checkFakeFileStat (fake_file , real_file_path )
4507
4507
self .assertEqual (fake_file .st_mode & 0o333 , 0 )
4508
4508
self .checkReadOnlyFile (fake_file , real_file_path )
4509
4509
4510
4510
def testAddExistingRealFileReadWrite (self ):
4511
4511
real_file_path = os .path .realpath (__file__ )
4512
- fake_file = self .filesystem .AddRealFile (real_file_path , read_only = False )
4512
+ fake_file = self .filesystem .add_real_file (real_file_path , read_only = False )
4513
4513
4514
4514
self .checkFakeFileStat (fake_file , real_file_path )
4515
4515
self .assertEqual (fake_file .st_mode , os .stat (real_file_path ).st_mode )
4516
4516
self .checkWritableFile (fake_file , real_file_path )
4517
4517
4518
4518
def testAddExistingRealDirectoryReadOnly (self ):
4519
4519
real_dir_path = os .path .join (os .path .dirname (__file__ ), 'pyfakefs' )
4520
- fake_dir = self .filesystem .AddRealDirectory (real_dir_path )
4520
+ fake_dir = self .filesystem .add_real_directory (real_dir_path )
4521
4521
self .assertTrue (self .filesystem .Exists (real_dir_path ))
4522
4522
self .assertTrue (self .filesystem .Exists (os .path .join (real_dir_path , 'fake_filesystem.py' )))
4523
4523
self .assertTrue (self .filesystem .Exists (os .path .join (real_dir_path , 'fake_pathlib.py' )))
@@ -4529,14 +4529,14 @@ def testAddExistingRealDirectoryReadOnly(self):
4529
4529
4530
4530
def testAddExistingRealDirectoryTree (self ):
4531
4531
real_dir_path = os .path .dirname (__file__ )
4532
- self .filesystem .AddRealDirectory (real_dir_path )
4532
+ self .filesystem .add_real_directory (real_dir_path )
4533
4533
self .assertTrue (self .filesystem .Exists (os .path .join (real_dir_path , 'fake_filesystem_test.py' )))
4534
4534
self .assertTrue (self .filesystem .Exists (os .path .join (real_dir_path , 'pyfakefs' , 'fake_filesystem.py' )))
4535
4535
self .assertTrue (self .filesystem .Exists (os .path .join (real_dir_path , 'pyfakefs' , '__init__.py' )))
4536
4536
4537
4537
def testAddExistingRealDirectoryReadWrite (self ):
4538
4538
real_dir_path = os .path .join (os .path .dirname (__file__ ), 'pyfakefs' )
4539
- self .filesystem .AddRealDirectory (real_dir_path , read_only = False )
4539
+ self .filesystem .add_real_directory (real_dir_path , read_only = False )
4540
4540
self .assertTrue (self .filesystem .Exists (real_dir_path ))
4541
4541
self .assertTrue (self .filesystem .Exists (os .path .join (real_dir_path , 'fake_filesystem.py' )))
4542
4542
self .assertTrue (self .filesystem .Exists (os .path .join (real_dir_path , 'fake_pathlib.py' )))
@@ -4549,7 +4549,7 @@ def testAddExistingRealDirectoryReadWrite(self):
4549
4549
def testAddExistingRealPathsReadOnly (self ):
4550
4550
real_file_path = os .path .realpath (__file__ )
4551
4551
real_dir_path = os .path .join (os .path .dirname (__file__ ), 'pyfakefs' )
4552
- self .filesystem .AddRealPaths ([real_file_path , real_dir_path ])
4552
+ self .filesystem .add_real_paths ([real_file_path , real_dir_path ])
4553
4553
4554
4554
fake_file = self .filesystem .ResolveObject (real_file_path )
4555
4555
self .checkFakeFileStat (fake_file , real_file_path )
@@ -4563,7 +4563,7 @@ def testAddExistingRealPathsReadOnly(self):
4563
4563
def testAddExistingRealPathsReadWrite (self ):
4564
4564
real_file_path = os .path .realpath (__file__ )
4565
4565
real_dir_path = os .path .join (os .path .dirname (__file__ ), 'pyfakefs' )
4566
- self .filesystem .AddRealPaths ([real_file_path , real_dir_path ], read_only = False )
4566
+ self .filesystem .add_real_paths ([real_file_path , real_dir_path ], read_only = False )
4567
4567
4568
4568
fake_file = self .filesystem .ResolveObject (real_file_path )
4569
4569
self .checkFakeFileStat (fake_file , real_file_path )
0 commit comments