def testAbortIfTrue_Abort(self):
     try:
         self.run_pipeline(
             common.AbortIfTrue(True, message='Forced an abort'))
         self.fail('Should have raised')
     except pipeline.Abort, e:
         self.assertEquals('Forced an abort', str(e))
 def testAbortIfTrue_DoNotAbort(self):
     self.run_pipeline(common.AbortIfTrue(False,
                                          message='Should not abort'))