@@ -280,7 +280,7 @@ def test_read_whole_image(self, file_path, level, expected_shape):
280
280
img , meta = reader .get_data (img_obj )
281
281
self .assertTupleEqual (img .shape , expected_shape )
282
282
self .assertEqual (meta ["backend" ], self .backend )
283
- self .assertEqual (meta [WSIPatchKeys .PATH ], str (os .path .abspath (file_path )))
283
+ self .assertEqual (meta [WSIPatchKeys .PATH ]. lower () , str (os .path .abspath (file_path )). lower ( ))
284
284
self .assertEqual (meta [WSIPatchKeys .LEVEL ], level )
285
285
assert_array_equal (meta [WSIPatchKeys .SIZE ], expected_shape [1 :])
286
286
assert_array_equal (meta [WSIPatchKeys .LOCATION ], (0 , 0 ))
@@ -300,7 +300,7 @@ def test_read_region(self, file_path, kwargs, patch_info, expected_img):
300
300
self .assertTupleEqual (img .shape , expected_img .shape )
301
301
self .assertIsNone (assert_array_equal (img , expected_img ))
302
302
self .assertEqual (meta ["backend" ], self .backend )
303
- self .assertEqual (meta [WSIPatchKeys .PATH ], str (os .path .abspath (file_path )))
303
+ self .assertEqual (meta [WSIPatchKeys .PATH ]. lower () , str (os .path .abspath (file_path )). lower ( ))
304
304
self .assertEqual (meta [WSIPatchKeys .LEVEL ], level )
305
305
assert_array_equal (meta [WSIPatchKeys .SIZE ], patch_info ["size" ])
306
306
assert_array_equal (meta [WSIPatchKeys .LOCATION ], patch_info ["location" ])
@@ -320,7 +320,7 @@ def test_read_region_multi_wsi(self, file_path_list, patch_info, expected_img):
320
320
self .assertTupleEqual (img .shape , expected_img .shape )
321
321
self .assertIsNone (assert_array_equal (img , expected_img ))
322
322
self .assertEqual (meta ["backend" ], self .backend )
323
- self .assertEqual (meta [WSIPatchKeys .PATH ][0 ], str (os .path .abspath (file_path_list [0 ])))
323
+ self .assertEqual (meta [WSIPatchKeys .PATH ][0 ]. lower () , str (os .path .abspath (file_path_list [0 ])). lower ( ))
324
324
self .assertEqual (meta [WSIPatchKeys .LEVEL ][0 ], patch_info ["level" ])
325
325
assert_array_equal (meta [WSIPatchKeys .SIZE ][0 ], expected_img .shape [1 :])
326
326
assert_array_equal (meta [WSIPatchKeys .LOCATION ][0 ], patch_info ["location" ])
@@ -397,7 +397,7 @@ def test_read_whole_image_multi_thread(self, file_path, level, expected_shape):
397
397
img , meta = reader .get_data (img_obj )
398
398
self .assertTupleEqual (img .shape , expected_shape )
399
399
self .assertEqual (meta ["backend" ], self .backend )
400
- self .assertEqual (meta [WSIPatchKeys .PATH ], str (os .path .abspath (file_path )))
400
+ self .assertEqual (meta [WSIPatchKeys .PATH ]. lower () , str (os .path .abspath (file_path )). lower ( ))
401
401
self .assertEqual (meta [WSIPatchKeys .LEVEL ], level )
402
402
assert_array_equal (meta [WSIPatchKeys .SIZE ], expected_shape [1 :])
403
403
assert_array_equal (meta [WSIPatchKeys .LOCATION ], (0 , 0 ))
@@ -415,7 +415,7 @@ def test_read_region_multi_thread(self, file_path, kwargs, patch_info, expected_
415
415
self .assertTupleEqual (img .shape , expected_img .shape )
416
416
self .assertIsNone (assert_array_equal (img , expected_img ))
417
417
self .assertEqual (meta ["backend" ], self .backend )
418
- self .assertEqual (meta [WSIPatchKeys .PATH ], str (os .path .abspath (file_path )))
418
+ self .assertEqual (meta [WSIPatchKeys .PATH ]. lower () , str (os .path .abspath (file_path )). lower ( ))
419
419
self .assertEqual (meta [WSIPatchKeys .LEVEL ], patch_info ["level" ])
420
420
assert_array_equal (meta [WSIPatchKeys .SIZE ], patch_info ["size" ])
421
421
assert_array_equal (meta [WSIPatchKeys .LOCATION ], patch_info ["location" ])
0 commit comments