def check_image(step_instance, stage): if stage == "created": exists = image_exists(world.ami_name, world.region) else: exists = not image_exists(world.ami_name, world.region) assert exists, "Image wasn't {} successfully".format(stage)
def test_image_build(self): self.assertTrue(utils.image_exists(self.image))