@@ -51,22 +51,6 @@ def _do_single(self, filename):
5151
5252 self .assertIn (base , file_list )
5353
54- # Do as many "equivalancy' tests as we can - ie, check that although we
55- # have different types for the filename, they refer to the same file.
56- def _do_equivalent (self , filename1 , filename2 ):
57- # Note we only check "filename1 against filename2" - we don't bother
58- # checking "filename2 against 1", as we assume we are called again with
59- # the args reversed.
60- self .assertTrue (type (filename1 )!= type (filename2 ),
61- "No point checking equivalent filenames of the same type" )
62- # stat and lstat should return the same results.
63- self .assertEqual (os .stat (filename1 ),
64- os .stat (filename2 ))
65- self .assertEqual (os .lstat (filename1 ),
66- os .lstat (filename2 ))
67- # Copy/rename etc tests using equivalent filename
68- self ._do_copyish (filename1 , filename2 )
69-
7054 # Tests that copy, move, etc one file to another.
7155 def _do_copyish (self , filename1 , filename2 ):
7256 # Should be able to rename the file using either name.
@@ -130,16 +114,6 @@ def _test_single(self, filename):
130114 finally :
131115 os .unlink (filename )
132116
133- def _test_equivalent (self , filename1 , filename2 ):
134- remove_if_exists (filename1 )
135- self .assertTrue (not os .path .exists (filename2 ))
136- f = file (filename1 , "w" )
137- f .close ()
138- try :
139- self ._do_equivalent (filename1 , filename2 )
140- finally :
141- os .unlink (filename1 )
142-
143117 # The 'test' functions are unittest entry points, and simply call our
144118 # _test functions with each of the filename combinations we wish to test
145119 def test_single_files (self ):
0 commit comments