Exemplo n.º 1
0
 def test_string2(self):
     release = "1.10.1"
     x = pyorient.OrientVersion(release)
     assert isinstance(x.major, int)
     assert isinstance(x.minor, int)
     assert isinstance(x.build, int)
     assert x.major == 1
     assert x.minor == 10
     assert x.build == 1
     assert x.subversion is ''
Exemplo n.º 2
0
 def test_new_string(self):
     release = "OrientDB Server v2.2.0 (build develop@r79d281140b01c0bc3b566a46a64f1573cb359783; 2016-05-18 14:14:32+0000)"
     x = pyorient.OrientVersion(release)
     assert isinstance(x.major, int)
     assert isinstance(x.minor, int)
     assert isinstance(x.build, int)
     assert isinstance(x.subversion, str)
     assert x.major == 2
     assert x.minor == 2
     assert x.build == 0
     assert x.subversion == "(build develop@r79d281140b01c0bc3b566a46a64f1573cb359783; 2016-05-18 14:14:32+0000)"
Exemplo n.º 3
0
 def test_string6(self):
     release = "v2.2"
     x = pyorient.OrientVersion(release)
     assert isinstance(x.major, int)
     assert isinstance(x.minor, int)
     assert isinstance(x.build, int)
     assert isinstance(x.subversion, str)
     assert x.major == 2
     assert x.minor == 2
     assert x.build == 0
     assert x.subversion == ""
Exemplo n.º 4
0
 def test_string5(self):
     release = "2.2-rc1 ;Unknown (build 0)"
     x = pyorient.OrientVersion(release)
     assert isinstance(x.major, int)
     assert isinstance(x.minor, int)
     assert isinstance(x.build, int)
     assert isinstance(x.subversion, str)
     assert x.major == 2
     assert x.minor == 2
     assert x.build == 0
     assert x.subversion == "rc1 ;Unknown (build 0)"