Ejemplo n.º 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))
Ejemplo n.º 2
0
 def test_samefile_different_casing_identical_path(self):
     self.assertFalse(samefile_different_casing("/foo/BAR", "/foo/BAR"))
Ejemplo n.º 3
0
 def test_samefile_different_casing_non_existant_file(self):
     self.assertFalse(samefile_different_casing("/foo/bar", "/foo/BAR"))