Пример #1
0
 def testTwoDots(self):
     self.assertEquals('37.1.0',
         getPreviousVersion('38.0b1', ['37.1.0', '36.0']))
Пример #2
0
 def testBetaEarlyCycle(self):
     # 37.0 is the RC build
     self.assertEquals('38.0b1',
         getPreviousVersion('38.0b2', ['38.0b1', '37.0']))
Пример #3
0
 def testBetaFirstInCycle(self):
     self.assertEquals('37.0',
         getPreviousVersion('38.0b1', ['37.0', '37.0b7']))
Пример #4
0
 def testReleaseBuild2(self):
     self.assertEquals('36.0.4',
         getPreviousVersion('37.0', ['37.0', '36.0.4', '36.0.1', '35.0.1']))
Пример #5
0
 def testBetaMidCycle(self):
     self.assertEquals('37.0b4',
         getPreviousVersion('37.0b5', ['37.0b4', '37.0b3']))
 def testTwoDots(self):
     self.assertEquals('37.1.0',
                       getPreviousVersion('38.0b1', ['37.1.0', '36.0']))
Пример #7
0
 def testESR(self):
     self.assertEquals('31.5.3esr',
         getPreviousVersion('31.6.0esr', ['31.5.3esr', '31.5.2esr', '31.4.0esr']))
 def testBetaFirstInCycle(self):
     self.assertEquals('37.0',
                       getPreviousVersion('38.0b1', ['37.0', '37.0b7']))
 def testBetaEarlyCycle(self):
     # 37.0 is the RC build
     self.assertEquals('38.0b1',
                       getPreviousVersion('38.0b2', ['38.0b1', '37.0']))
 def testBetaMidCycle(self):
     self.assertEquals('37.0b4',
                       getPreviousVersion('37.0b5', ['37.0b4', '37.0b3']))
 def testReleaseBuild2(self):
     self.assertEquals(
         '36.0.4',
         getPreviousVersion('37.0', ['37.0', '36.0.4', '36.0.1', '35.0.1']))
 def testESR(self):
     self.assertEquals(
         '31.5.3esr',
         getPreviousVersion('31.6.0esr',
                            ['31.5.3esr', '31.5.2esr', '31.4.0esr']))