Beispiel #1
0
 def test_lt_2(self):
     e = "<2.10.1"
     r = "2.10"
     assert version_match(e, r) is False
Beispiel #2
0
 def test_lt_3(self):
     e = "<2.10.1"
     r = "2.9"
     assert version_match(e, r) is True
Beispiel #3
0
 def test_le_2(self):
     e = "<=2.10.1"
     r = "2.10"
     assert version_match(e, r) is True
Beispiel #4
0
 def test_le_1(self):
     e = "<=2.10.1"
     r = "2.11"
     assert version_match(e, r) is False
Beispiel #5
0
 def test_eq_3(self):
     e = "==2.10.1"
     r = "2.9"
     assert version_match(e, r) is False
Beispiel #6
0
 def test_gt_3(self):
     e = ">2.10.1"
     r = "2.9"
     assert version_match(e, r) is False
Beispiel #7
0
 def test_gt_1(self):
     e = ">2.10.1"
     r = "2.11"
     assert version_match(e, r) is True