def test_docker_history(self): history = exec_docker_history(self.container['Id']) print history[0] assert self.image_name in history[0][ 'Tags'] or self.long_image_name in history[0]['Tags']
def test_docker_history(self): history = exec_docker_history(self.container["Id"]) print history[0] assert self.image_name in history[0]["Tags"] or self.long_image_name in history[0]["Tags"]
def crawl(self, container_id, avoid_setns=False, **kwargs): history = exec_docker_history(container_id) image_id = history[0]['Id'] yield (image_id, {'history': history}, 'dockerhistory')