Beispiel #1
0
 def test_alpha(self):
     self.assertEqual((0, 1, 2, 'alpha', 2), _parse_version('0.1.2a2'))
     self.assertEqual((1, 2, 3, 'alpha', 0), _parse_version('1.2.3a'))
Beispiel #2
0
 def test_rc(self):
     self.assertEqual((0, 1, 2, 'candidate', 5), _parse_version('0.1.2c5'))
     self.assertEqual((0, 1, 2, 'candidate', 0), _parse_version('0.1.2c'))
Beispiel #3
0
 def test_final(self):
     self.assertEqual((0, 1, 2, 'final', 0), _parse_version('0.1.2'))
Beispiel #4
0
def test_alpha():
    assert (0, 1, 2, 'alpha', 2) == _parse_version('0.1.2a2')
    assert (1, 2, 3, 'alpha', 0) == _parse_version('1.2.3a')
Beispiel #5
0
 def test_beta(self):
     self.assertEqual((0, 1, 2, 'beta', 2), _parse_version('0.1.2b2'))
     self.assertEqual((0, 1, 2, 'beta', 0), _parse_version('0.1.2b'))
Beispiel #6
0
def test_rc():
    assert (0, 1, 2, 'candidate', 5) == _parse_version('0.1.2rc5')
    assert (0, 1, 2, 'candidate', 0) == _parse_version('0.1.2rc')
Beispiel #7
0
def test_final():
    assert (0, 1, 2, 'final', 0) == _parse_version('0.1.2')
Beispiel #8
0
def test_beta():
    assert (0, 1, 2, 'beta', 2) == _parse_version('0.1.2b2')
    assert (0, 1, 2, 'beta', 0) == _parse_version('0.1.2b')
Beispiel #9
0
def test_alpha():
    assert (0, 1, 2, "alpha", 2) == _parse_version("0.1.2a2")
    assert (1, 2, 3, "alpha", 0) == _parse_version("1.2.3a")
Beispiel #10
0
def test_final():
    assert (0, 1, 2, "final", 0) == _parse_version("0.1.2")
Beispiel #11
0
def test_rc():
    assert (0, 1, 2, "candidate", 5) == _parse_version("0.1.2rc5")
    assert (0, 1, 2, "candidate", 0) == _parse_version("0.1.2rc")
Beispiel #12
0
def test_beta():
    assert (0, 1, 2, "beta", 2) == _parse_version("0.1.2b2")
    assert (0, 1, 2, "beta", 0) == _parse_version("0.1.2b")