def test_permissionDenied(self):
        sourcePath = self.makeTempFile('')
        os.chmod(sourcePath, 0)
        count, errors = self.getErrors(sourcePath)
        self.assertEqual(count, 1)
        self.assertEqual(
            errors,
            [('unexpectedError', sourcePath, "Permission denied")])
Same function, but with custom coordinate system bounds
dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_api.py/CheckTests.test_permissionDenied--crossover with--dataset/ETHPy150Open tkrajina/cartesius/create_images_and_readme.py/test_function_with_custom_bounds