def METHOD_NAME(self):
    with self.assertRaises(ValueError):
        with Pipeline('somename') as p:
            op1 = ContainerOp(name='op1', image='image')
            exit_op = ContainerOp(name='exit', image='image')
            exit_op.after(op1)
            with ExitHandler(exit_op=exit_op):
                pass