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)
Exemple #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)
Exemple #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)