예제 #1
0
 def test_version_minor_difference(self):
     client_version = "0.1.0"
     server_version = "Device Server Version: 0.2.1"
     assert version.fromString(client_version) == (0,1,0)
     assert version.fromString(server_version) == (0,2,1)
     assert version.hasExpired(client_version, server_version)
예제 #2
0
 def test_extract_version_from_string(self):
     sample = version.version
     major, minor, incremental = version.fromString(sample)
     assert major == version.major
     assert minor == version.minor
     assert incremental == version.incremental