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