def test_splitversion_prefix(self):
     self.assertEquals(bv.splitversion("1.2-cosent-2.8"), ("1.2-cosent", "2.8", "2.8", "", ""))
 def test_splitversion_dev(self):
     self.assertEquals(bv.splitversion("2.8dev"), ("", "2.8dev", "2.8", "", ""))
     self.assertEquals(bv.splitversion("2.8dev2"), ("", "2.8dev2", "2.8", "", "2"))
 def test_splitversion_rc(self):
     self.assertEquals(bv.splitversion("2.8rc"), ("", "2.8rc", "2.8", "", ""))
     self.assertEquals(bv.splitversion("2.8rc1"), ("", "2.8rc1", "2.8", "1", ""))
 def test_splitversion_final(self):
     self.assertEquals(bv.splitversion("2.8"), ("", "2.8", "2.8", "", ""))
Exemple #5
0
 def test_splitversion_prefix(self):
     self.assertEquals(bv.splitversion('1.2-cosent-2.8'),
                       ('1.2-cosent', '2.8', '2.8', '', ''))
Exemple #6
0
 def test_splitversion_rc(self):
     self.assertEquals(bv.splitversion('2.8rc'),
                       ('', '2.8rc', '2.8', '', ''))
     self.assertEquals(bv.splitversion('2.8rc1'),
                       ('', '2.8rc1', '2.8', '1', ''))
Exemple #7
0
 def test_splitversion_dev(self):
     self.assertEquals(bv.splitversion('2.8dev'),
                       ('', '2.8dev', '2.8', '', ''))
     self.assertEquals(bv.splitversion('2.8dev2'),
                       ('', '2.8dev2', '2.8', '', '2'))
Exemple #8
0
 def test_splitversion_final(self):
     self.assertEquals(bv.splitversion('2.8'), ('', '2.8', '2.8', '', ''))