Beispiel #1
0
def test_build_version2():
    version1 = UcscVersion("4.2(0.175a)")
    version2 = UcscVersion("4.2(0.258a)")
    assert_equal((version1 < version2), True)
Beispiel #2
0
def test_spin_version6():
    # version interpreted as 4.2(1b)
    version1 = UcscVersion("4.2(1a.2021052301)")
    version2 = UcscVersion("4.2(1b)")
    assert_equal((version1 == version2), True)
Beispiel #3
0
def test_patch_version1():
    # version interpreted as 4.0(235a)
    version1 = UcscVersion("4.0(234.5)")
    version2 = UcscVersion("4.0(235a)")
    assert_equal((version1 == version2), True)
Beispiel #4
0
def test_build_version1():
    # 4.2(0.175a) is an engineering build that will later become 4.2(1a)
    version1 = UcscVersion("4.2(0.175a)")
    version2 = UcscVersion("4.2(1a)")
    assert_equal((version1 < version2), True)
Beispiel #5
0
def test_spin_version4():
    # version interpreted as 4.0(234z)
    version1 = UcscVersion("4.0(234S3)")
    version2 = UcscVersion("4.0(234z)")
    assert_equal((version1 == version2), True)
Beispiel #6
0
def test_nightly_version4():
    version1 = UcscVersion("2.0(2cS6)")
    version2 = UcscVersion("2.0(3)")
    assert_equal((version1 < version2), True)
Beispiel #7
0
def test_nightly_version3():
    # 2.0(2cS6) will be considered as 2.0(2d) internally
    version1 = UcscVersion("2.0(2cS6)")
    version2 = UcscVersion("2.0(2c)")
    assert_equal((version1 == version2), False)
Beispiel #8
0
def test_nightly_version2():
    version1 = UcscVersion("2.0(13aS6)")
    version2 = UcscVersion("2.0(1S10)")
    assert_equal((version1 > version2), True)
Beispiel #9
0
def test_patch_versions():
    # when we don't see a patch version we use z
    # so 2.0(12) will be considered as 2.0(12z)
    version1 = UcscVersion("2.0(12b)")
    version2 = UcscVersion("2.0(12)")
    assert_equal((version1 > version2), False)