'Test dirs with XDG environment variables explicitly set.
Args:
func: The function to test.
varname: The environment variable which should be set.'

@pytest.mark.parametrize('func,    varname', [(standarddir.data, 'XDG_DATA_HOME'), (standarddir.config, 'XDG_CONFIG_HOME'), (standarddir.cache, 'XDG_CACHE_HOME'), (standarddir.runtime, 'XDG_RUNTIME_DIR')])
@pytest.mark.linux
def test_linux_explicit(self, monkeypatch, tmpdir, func, varname):

    monkeypatch.setenv(varname, str(tmpdir))
    assert (func() == str((tmpdir / 'qute_test')))
