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