Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
assert has_up(PDGIDs.AntiMuon) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
assert has_up(PDGIDs.Invalid2) == False
assert has_up(PDGIDs.Photon) == False
assert has_up(PDGIDs.Gluon) == False
assert has_up(PDGIDs.Electron) == False
assert has_up(PDGIDs.AntiMuon) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
assert has_up(PDGIDs.Invalid2) == False
def test_has_up(PDGIDs):
assert has_up(PDGIDs.Photon) == False
assert has_up(PDGIDs.Gluon) == False
assert has_up(PDGIDs.Electron) == False
assert has_up(PDGIDs.AntiMuon) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
def test_has_up(PDGIDs):
assert has_up(PDGIDs.Photon) == False
assert has_up(PDGIDs.Gluon) == False
assert has_up(PDGIDs.Electron) == False
assert has_up(PDGIDs.AntiMuon) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
assert has_up(PDGIDs.Invalid2) == False
def test_has_up(PDGIDs):
assert has_up(PDGIDs.Photon) == False
assert has_up(PDGIDs.Gluon) == False
assert has_up(PDGIDs.Electron) == False
assert has_up(PDGIDs.AntiMuon) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
def test_has_up(PDGIDs):
assert has_up(PDGIDs.Photon) == False
assert has_up(PDGIDs.Gluon) == False
assert has_up(PDGIDs.Electron) == False
assert has_up(PDGIDs.AntiMuon) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
assert has_up(PDGIDs.Invalid2) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
assert has_up(PDGIDs.Invalid2) == False
def test_has_up(PDGIDs):
assert has_up(PDGIDs.Photon) == False
assert has_up(PDGIDs.Gluon) == False
assert has_up(PDGIDs.Electron) == False
assert has_up(PDGIDs.AntiMuon) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
assert has_up(PDGIDs.Invalid2) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
assert has_up(PDGIDs.Invalid2) == False
def test_has_up(PDGIDs):
assert has_up(PDGIDs.Photon) == False
assert has_up(PDGIDs.Gluon) == False
assert has_up(PDGIDs.Electron) == False
assert has_up(PDGIDs.AntiMuon) == False
assert has_up(PDGIDs.jpsi) == False
assert has_up(PDGIDs.Upsilon_1S) == False
assert has_up(PDGIDs.PiPlus) == True
assert has_up(PDGIDs.KMinus) == True
assert has_up(PDGIDs.D0) == True
assert has_up(PDGIDs.DPlus) == False
assert has_up(PDGIDs.DsPlus) == False
assert has_up(PDGIDs.B0) == False
assert has_up(PDGIDs.Bs) == False
assert has_up(PDGIDs.BcPlus) == False
assert has_up(PDGIDs.Proton) == True
assert has_up(PDGIDs.LcPlus) == True
assert has_up(PDGIDs.Lb) == True
assert has_up(PDGIDs.DD1) == False
assert has_up(PDGIDs.SD0) == False
assert has_up(PDGIDs.Invalid1) == False
assert has_up(PDGIDs.Invalid2) == False