File tree Expand file tree Collapse file tree 5 files changed +102
-100
lines changed
Expand file tree Collapse file tree 5 files changed +102
-100
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def test_case_1(self):
101101 self .assertIn (moved_file , self .test_dirs [f'{ self .base_test_dir } /src_test_dir_1' ])
102102 self .assertTrue (os .path .exists (os .path .join (f'{ self .base_test_dir } /dest_test_dir_1' , moved_file )))
103103 # Test the name of the moved file
104- self .assertEqual (moved_file , 'file3 .txt' )
104+ self .assertTrue (moved_file . endswith ( ' .txt') )
105105
106106 def test_case_2 (self ):
107107 moved_file = f_306 (f'{ self .base_test_dir } /src_test_dir_2' , f'{ self .base_test_dir } /dest_test_dir_2' )
@@ -121,7 +121,7 @@ def test_case_4(self):
121121 self .assertIn (moved_file , self .test_dirs [f'{ self .base_test_dir } /src_test_dir_4' ])
122122 self .assertTrue (os .path .exists (os .path .join (f'{ self .base_test_dir } /dest_test_dir_4' , moved_file )))
123123 # Test the name of the moved file
124- self .assertEqual (moved_file , 'file11 .txt' )
124+ self .assertTrue (moved_file . endswith ( ' .txt') )
125125
126126 def test_case_5 (self ):
127127 moved_file = f_306 (f'{ self .base_test_dir } /src_test_dir_5' , f'{ self .base_test_dir } /dest_test_dir_5' )
@@ -139,3 +139,4 @@ def run_tests():
139139if __name__ == '__main__' :
140140 doctest .testmod ()
141141 run_tests ()
142+
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def test_case_1(self):
8484 self .assertIn (moved_file , self .test_dirs [f'{ self .base_test_dir } /src_test_dir_1' ])
8585 self .assertTrue (os .path .exists (os .path .join (f'{ self .base_test_dir } /dest_test_dir_1' , moved_file )))
8686 # Test the name of the moved file
87- self .assertEqual (moved_file , 'file3 .txt' )
87+ self .assertTrue (moved_file . endswith ( ' .txt') )
8888 def test_case_2 (self ):
8989 moved_file = task_func (f'{ self .base_test_dir } /src_test_dir_2' , f'{ self .base_test_dir } /dest_test_dir_2' )
9090 self .assertIn (moved_file , self .test_dirs [f'{ self .base_test_dir } /src_test_dir_2' ])
@@ -101,7 +101,7 @@ def test_case_4(self):
101101 self .assertIn (moved_file , self .test_dirs [f'{ self .base_test_dir } /src_test_dir_4' ])
102102 self .assertTrue (os .path .exists (os .path .join (f'{ self .base_test_dir } /dest_test_dir_4' , moved_file )))
103103 # Test the name of the moved file
104- self .assertEqual (moved_file , 'file11 .txt' )
104+ self .assertTrue (moved_file . endswith ( ' .txt') )
105105 def test_case_5 (self ):
106106 moved_file = task_func (f'{ self .base_test_dir } /src_test_dir_5' , f'{ self .base_test_dir } /dest_test_dir_5' )
107107 self .assertIn (moved_file , self .test_dirs [f'{ self .base_test_dir } /src_test_dir_5' ])
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def test_case_1(self):
101101 self .assertIn (moved_file , self .test_dirs [f'{ self .base_test_dir } /src_test_dir_1' ])
102102 self .assertTrue (os .path .exists (os .path .join (f'{ self .base_test_dir } /dest_test_dir_1' , moved_file )))
103103 # Test the name of the moved file
104- self .assertEqual (moved_file , 'file3 .txt' )
104+ self .assertTrue (moved_file . endswith ( ' .txt') )
105105
106106 def test_case_2 (self ):
107107 moved_file = f_306 (f'{ self .base_test_dir } /src_test_dir_2' , f'{ self .base_test_dir } /dest_test_dir_2' )
@@ -121,7 +121,7 @@ def test_case_4(self):
121121 self .assertIn (moved_file , self .test_dirs [f'{ self .base_test_dir } /src_test_dir_4' ])
122122 self .assertTrue (os .path .exists (os .path .join (f'{ self .base_test_dir } /dest_test_dir_4' , moved_file )))
123123 # Test the name of the moved file
124- self .assertEqual (moved_file , 'file11 .txt' )
124+ self .assertTrue (moved_file . endswith ( ' .txt') )
125125
126126 def test_case_5 (self ):
127127 moved_file = f_306 (f'{ self .base_test_dir } /src_test_dir_5' , f'{ self .base_test_dir } /dest_test_dir_5' )
@@ -139,3 +139,4 @@ def run_tests():
139139if __name__ == '__main__' :
140140 doctest .testmod ()
141141 run_tests ()
142+
You can’t perform that action at this time.
0 commit comments