Definition at line 62 of file cmsswRelease.py.
◆ test_cmsswRelease()
def cmsswRelease.CMSSWReleaseTest.test_cmsswRelease |
( |
|
self | ) |
|
Definition at line 63 of file cmsswRelease.py.
63 def test_cmsswRelease(self):
65 self.assertTrue(rel.startswith(
'CMSSW_'))
◆ test_isNewerThan()
def cmsswRelease.CMSSWReleaseTest.test_isNewerThan |
( |
|
self | ) |
|
◆ test_releaseNumber()
def cmsswRelease.CMSSWReleaseTest.test_releaseNumber |
( |
|
self | ) |
|
Definition at line 66 of file cmsswRelease.py.
References cmsswRelease.releaseNumber().
66 def test_releaseNumber(self):
68 self.assertEqual(out, (7,2,1))
70 self.assertEqual(out, (10,2,1,4))
72 self.assertEqual(out, (7,3))
74 self.assertEqual(out, (7,3,0,2))
75 self.assertRaises(ValueError, releaseNumber,
'foobar')
76 self.assertRaises(ValueError, releaseNumber,
'CMSSW_1_2_3_xat3')
77 self.assertRaises(ValueError, releaseNumber,
'CMSSW_1_2_a')
def releaseNumber(release=None)