@mock.patch('flaskage.scaffold.prompt_yes_no', return_value=True)
    def test_policy_prompt_yes_directory(self, mock_prompt_yes_no):
        os.mkdir(self.build_dir)
        test_directory = os.path.join(self.build_dir, 'directory1')
        os.mkdir(test_directory)
        os.chmod(test_directory, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
        self.build_scaffold(
            'test-template-2', overwrite_target_root=True,
            existing_policy=Scaffold.EXISTING_PROMPT,
            compare_directory_permissions=True
        )
        assert self.exists('directory1', type='dir')
        assert get_permissions(test_directory) <= 0o775
        assert self.logged('Updating permissions of directory')
dataset/ETHPy150Open fgimian/flaskage/tests/test_scaffold.py/TestScaffold.test_policy_prompt_yes_directory/operator `==` -> `<=`