def test_successful_build(self): good_build_res = fake_docker.BUILD_RES utils.log_and_check_build_results(good_build_res, 'temp')
def test_failed_build(self): bad_build_res = fake_docker.FAILED_BUILD_RES with self.assertRaises(utils.AppstartAbort): utils.log_and_check_build_results(bad_build_res, 'temp')