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)