def testAbortValidate(self): ab = abort.Abort('abort message', None) self.assertRaises(abort.ValidationError, ab.Validate) ab = abort.Abort([1, 2, 3], None) self.assertRaises(abort.ValidationError, ab.Validate) ab = abort.Abort([1], None) self.assertRaises(abort.ValidationError, ab.Validate) ab = abort.Abort(['Error Message'], None) ab.Validate()
def testAbort(self, build_info): ab = abort.Abort(['abort message'], build_info) self.assertRaises(abort.ActionError, ab.Run)