示例#1
0
 def test_version_no_difference(self):
     client_version = "0.3.7"
     server_version = "Device Server Version: 0.3.7"
     assert not version.hasExpired(client_version, server_version)
示例#2
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)