Пример #1
0
 def test_versions_can_be_strictly_ordered(self):
     self.assert_(SV("0.1.0a0") < SV("0.1.0a1"))
     self.assert_(SV("0.1.0a1") < SV("0.1.0a2"))
     self.assert_(SV("0.1.0a2") < SV("0.1.0a3"))
     self.assert_(SV("0.1.0a3") < SV("0.1.0"))
     self.assert_(SV("0.1.0") < SV("0.2.0"))
     self.assert_(SV("0.1.0") < SV("1.0.0"))
     self.assert_(SV("0.2.0") < SV("0.3.0"))
     self.assert_(SV("0.3.0") < SV("0.3.1"))
     self.assert_(SV("0.3.1") < SV("0.4.0"))
     self.assert_(SV("0.4.0") < SV("0.4.1"))
     self.assert_(SV("0.4.1") < SV(get_plain_version()))
     self.assert_(SV(get_plain_version()) < SV("0.5.1"))
Пример #2
0
 def test_versions_can_be_strictly_ordered(self):
     self.assert_(SV('0.1.0a0') < SV('0.1.0a1'))
     self.assert_(SV('0.1.0a1') < SV('0.1.0a2'))
     self.assert_(SV('0.1.0a2') < SV('0.1.0a3'))
     self.assert_(SV('0.1.0a3') < SV('0.1.0'))
     self.assert_(SV('0.1.0') < SV('0.2.0'))
     self.assert_(SV('0.1.0') < SV('1.0.0'))
     self.assert_(SV('0.2.0') < SV('0.3.0'))
     self.assert_(SV('0.3.0') < SV('0.3.1'))
     self.assert_(SV('0.3.1') < SV('0.4.0'))
     self.assert_(SV('0.4.0') < SV('0.4.1'))
     self.assert_(SV('0.4.1') < SV('0.5.0'))
     self.assert_(SV('0.5.0') < SV(get_plain_version()))
     self.assert_(SV(get_plain_version()) < SV('0.6.1'))
Пример #3
0
 def test_current_version_is_parsable_as_a_strict_version_number(self):
     SV(get_plain_version())
Пример #4
0
 def test_current_version_is_parsable_as_a_strict_version_number(self):
     SV(get_plain_version())