예제 #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
예제 #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({})