コード例 #1
0
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)
コード例 #2
0
 def test_image_build(self):
     self.assertTrue(utils.image_exists(self.image))