

def test_read_file_symlink(self):
    content = 'Line 1\nLine 2\n'
    self._add_file('REAL', content.remote_path, content=content, commit_msg='Target file.')
    self._add_file('INDIRECT', self.remote_path, target='REAL', commit_msg='Here we go.')
    vcs = self.get_vcs()
    vcs.clone()
    vcs.update()
    assert (vcs.read_file('HEAD', 'INDIRECT') == content)
    with pytest.raises(ContentReadError):
        vcs.read_file('HEAD', 'does_not_exist.txt')

dataset/ETHPy150Open dropbox/changes/tests/changes/vcs/test_git.py GitVcsTest.test_read_file_symlink/VarMisuse@20/39 `self`->`content`