Ejemplo n.º 1
0
 def testNoPrefix(self):
     self.assertEquals(normalizeName('mozilla-beta', min_=1), 'm-beta')
Ejemplo n.º 2
0
 def testExclusiveWordReplacement(self):
     self.assertEquals(normalizeName('errasdebug', min_=1), 'errasdebug')
Ejemplo n.º 3
0
 def testPrefixDoesntViolateMax(self):
     got = normalizeName('comm-beta', product='thunderbird', min_=9, max_=9)
     self.assertEquals(got, 'tb-c-beta')
Ejemplo n.º 4
0
 def testPrefixDelimeterOnly(self):
     got = normalizeName('mozilla-release', min_=6, max_=6)
     self.assertEquals(got, 'm-rel-')
 def testExclusiveWordReplacement(self):
     self.assertEquals(normalizeName('errasdebug', min_=1), 'errasdebug')
Ejemplo n.º 6
0
 def testExpandShort(self):
     self.assertEquals(normalizeName('mozilla-central', min_=8, max_=8), 'm-cen-00')
 def testNoPrefix(self):
     self.assertEquals(normalizeName('mozilla-beta', min_=1), 'm-beta')
 def testPrefixDelimeterOnly(self):
     got = normalizeName('mozilla-release', min_=6, max_=6)
     self.assertEquals(got, 'm-rel-')
 def testPrefixDoesntViolateMax(self):
     got = normalizeName('comm-beta', product='thunderbird', min_=9, max_=9)
     self.assertEquals(got, 'tb-c-beta')
 def testExpandShort(self):
     self.assertEquals(normalizeName('mozilla-central', min_=8, max_=8),
                       'm-cen-00')
Ejemplo n.º 11
0
 def testPrefix(self):
     self.assertEquals(normalizeName('comm-release', product='thunderbird', min_=1), 'tb-c-rel')