def test_docker_history(long_id): global image global image_id found = False history = exec_docker_history(long_id) found = image_id in history[0]['Id'] print sys._getframe().f_code.co_name, int(found)
def test_docker_history(self): history = exec_docker_history(self.container['Id']) print history[0] assert self.image_name in history[0]['Tags']
def test_exec_docker_history_failure(self, *args): with self.assertRaises(DockerutilsException): dockerutils.exec_docker_history('ididid')
def test_exec_docker_history(self, *args): h = dockerutils.exec_docker_history('ididid') assert h == [{'History': 'xxx'}]