示例#1
0
 def test_samefile_different_casing(self):
     with NamedTemporaryFile(prefix='Foo') as f:
         real_name = f.name
         lower_name = real_name.lower()
         self.assertFalse(samefile_different_casing(real_name, real_name))
         self.assertFalse(samefile_different_casing(lower_name, lower_name))
         self.assertTrue(samefile_different_casing(real_name, lower_name))
示例#2
0
 def test_samefile_different_casing_identical_path(self):
     self.assertFalse(samefile_different_casing("/foo/BAR", "/foo/BAR"))
示例#3
0
 def test_samefile_different_casing_non_existant_file(self):
     self.assertFalse(samefile_different_casing("/foo/bar", "/foo/BAR"))