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