def METHOD_NAME(self, small_sd_fixture, mmr):
    ancestors = tsinfer.generate_ancestors(small_sd_fixture)
    anc_ts = tsinfer.match_ancestors(small_sd_fixture, ancestors)
    ts = tsinfer.match_samples(
        small_sd_fixture, anc_ts, mismatch_ratio=mmr, recombination_rate=1e-8
    )
    assert ts.num_provenances == small_sd_fixture.num_provenances + 3
    params = json.loads(ts.provenance(-3).record)["parameters"]
    assert params["command"] == "generate_ancestors"
    params = json.loads(ts.provenance(-2).record)["parameters"]
    assert params["command"] == "match_ancestors"
    params = json.loads(ts.provenance(-1).record)["parameters"]
    assert params["command"] == "match_samples"
    assert params["mismatch_ratio"] == mmr