def test_bad_version(self):
     dclient = fake_docker.FakeDockerClient()
     dclient.version = lambda: {'Version': '1.4.0'}
     with self.assertRaises(utils.AppstartAbort):
         utils.check_docker_version(dclient)
Beispiel #2
0
 def test_bad_version(self):
     dclient = fake_docker.FakeDockerClient()
     dclient.version = lambda: {'Version': '1.4.0'}
     with self.assertRaises(utils.AppstartAbort):
         utils.check_docker_version(dclient)
 def test_good_version(self):
     dclient = fake_docker.FakeDockerClient()
     utils.check_docker_version(dclient)
Beispiel #4
0
 def test_good_version(self):
     dclient = fake_docker.FakeDockerClient()
     utils.check_docker_version(dclient)