Esempio n. 1
0
def test_patchset_verify(datadir):
    patchset = pyhf.PatchSet(
        json.load(open(datadir.join('example_patchset.json'))))
    ws = pyhf.Workspace(json.load(open(datadir.join('example_bkgonly.json'))))
    assert patchset.verify(ws) is None
Esempio n. 2
0
def test_patchset_verify_failure(datadir):
    patchset = pyhf.PatchSet(
        json.load(open(datadir.join('example_patchset.json'))))
    with pytest.raises(pyhf.exceptions.PatchSetVerificationError):
        assert patchset.verify({})