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