

def test_read_file_symlink_out_of_tree(self):
    oot = os.path.join(self.root, 'out_of_tree.txt')
    with open(oot, 'w') as f:
        f.write('Out of tree!\n')
    oot._add_file('INDIRECT', self.remote_path, target=oot, commit_msg='Here we go.')
    vcs = self.get_vcs()
    vcs.clone()
    vcs.update()
    with pytest.raises(ContentReadError):
        vcs.read_file('HEAD', 'INDIRECT')

dataset/ETHPy150Open dropbox/changes/tests/changes/vcs/test_git.py GitVcsTest.test_read_file_symlink_out_of_tree/VarMisuse@45/72 `self`->`oot`