Exemplo n.º 1
0
 def test_compare_version(self):
     self.assertEqual(docker_container.compare_version('1.17', '1.17'), 0)
     self.assertEqual(docker_container.compare_version('1.17', '1.16'), -1)
     self.assertEqual(docker_container.compare_version('1.17', '1.18'), 1)
Exemplo n.º 2
0
 def test_compare_version(self):
     self.assertEqual(docker_container.compare_version('1.17', '1.17'), 0)
     self.assertEqual(docker_container.compare_version('1.17', '1.16'), -1)
     self.assertEqual(docker_container.compare_version('1.17', '1.18'), 1)
Exemplo n.º 3
0
 def test_compare_version(self):
     self.assertEqual(docker_container.compare_version("1.17", "1.17"), 0)
     self.assertEqual(docker_container.compare_version("1.17", "1.16"), -1)
     self.assertEqual(docker_container.compare_version("1.17", "1.18"), 1)