'Test --basedir.'

@pytest.mark.parametrize('typ', DIR_TYPES)
def test_basedir(self, tmpdir, typ):

    basedir = (tmpdir / 'basedir')
    assert (not basedir.exists())
    args = types.SimpleNamespace(basedir=str(basedir))
    standarddir.init(args)
    func = getattr(standarddir, typ)
    func()
    assert basedir.exists()
    if (os.name == 'posix'):
        assert ((basedir.stat().mode & 511) == 448)
