def until_closure(self, **kwargs): self.pre_constraints.append( CaptureConstraint(self, 'match', target='closure', **kwargs)) return self
def until_success(self, **kwargs): self.post_constraints.append( CaptureConstraint(self, 'success', **kwargs)) return self
def until_result(self, **kwargs): self.pre_constraints.append(CaptureConstraint(self, 'result', **kwargs)) return self
def until_failure(self, **kwargs): self.post_constraints.append( CaptureConstraint(self, 'failure', **kwargs)) return self
def until_fragment(self, **kwargs): self.pre_constraints.append( CaptureConstraint(self, 'match', target='fragment', **kwargs)) return self