@known_failure_githubci_win
@with_tree(tree={'a.tar.gz': {'d': {fn_in_archive_obscure: '123'}}})
def test_annex_get_from_subdir(topdir=None):
    ds = Dataset(topdir)
    ds.create(force=True)
    ds.save('a.tar.gz')
    ds.add_archive_content('a.tar.gz', delete=True)
    fpath = op.join(topdir, 'a', 'd', fn_in_archive_obscure)
    with chpwd(op.join(topdir, 'a', 'd')):
        runner = WitlessRunner()
        runner.run(['git', 'annex', 'drop', '--', fn_in_archive_obscure], protocol=KillOutput)
        assert_false(ds.repo.file_has_content(fpath))
        runner.run(['git', 'annex', 'get', '--', fn_in_archive_obscure], protocol=KillOutput)
        assert_true(ds.repo.file_has_content(fpath))
@known_failure_githubci_win
@with_tree(tree={'a.tar.gz': {'d': {fn_in_archive_obscure: '123'}}})
def test_annex_get_from_subdir(topdir=None):
    ds = Dataset(topdir)
    ds.create(force=True)
    ds.save('a.tar.gz')
    ds.add_archive_content('a.tar.gz', delete=True)
    fpath = op.join(topdir, 'a', 'd', fn_in_archive_obscure)
    with chpwd(op.join(topdir, 'a', 'd')):
        runner = WitlessRunner()
        runner.run(['git', 'annex', 'drop', '--', fn_in_archive_obscure], protocol=KillOutput)
        assert_false(ds.repo.file_has_content(fpath))
        runner.run(['git', 'annex', 'get', '--', fn_in_archive_obscure], protocol=KillOutput)
        assert_true(ds.repo.file_has_content(fpath))