예제 #1
0
    def until_closure(self, **kwargs):
        self.pre_constraints.append(
            CaptureConstraint(self, 'match', target='closure', **kwargs))

        return self
예제 #2
0
    def until_success(self, **kwargs):
        self.post_constraints.append(
            CaptureConstraint(self, 'success', **kwargs))

        return self
예제 #3
0
    def until_result(self, **kwargs):
        self.pre_constraints.append(CaptureConstraint(self, 'result',
                                                      **kwargs))

        return self
예제 #4
0
    def until_failure(self, **kwargs):
        self.post_constraints.append(
            CaptureConstraint(self, 'failure', **kwargs))

        return self
예제 #5
0
    def until_fragment(self, **kwargs):
        self.pre_constraints.append(
            CaptureConstraint(self, 'match', target='fragment', **kwargs))

        return self