@pytest.fixture
def rngschemas(rootrnc, tmpdir, rncschemas):
    cmd = ['pytrang']
    rngname = rootrnc.new(dirname=tmpdir, ext='.rng')
    cmd.append(rootrnc.strpath)
    cmd.append(rngname.strpath)
    subprocess.check_call(cmd)
    rngnames = tmpdir.listdir(fil='*.rng')
    assert (len(rngnames) == len(rncschemas))
    for (rnc, rng) in zip(sorted(rngnames), sorted(rncschemas)):
        assert (rnc.purebasename == rng.purebasename)
    return rngnames
@pytest.fixture
def rngschemas(rootrnc, tmpdir, rncschemas):
    cmd = ['pytrang']
    rngname = rootrnc.new(dirname=tmpdir, ext='.rng')
    cmd.append(rootrnc.strpath)
    cmd.append(rngname.strpath)
    subprocess.check_call(cmd)
    rngnames = tmpdir.listdir(fil='*.rng')
    assert (len(rngnames) == len(rncschemas))
    for (rnc, rng) in zip(sorted(rngnames), sorted(rncschemas)):
        assert (rnc.purebasename == rng.purebasename)
    return rngnames