Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/a/saycbridge-HEAD/src/core/callexplorer.py   saycbridge(Download)
    def history_iglob(self, glob_string):
        glob_string = self._normalize_glob_string(glob_string)
        glob_string, last_token = self._split_before_last_token(glob_string)
        histories = self.history_iglob(glob_string) if self._has_wildcards(glob_string) else [CallHistory.from_string(glob_string)]
        call_generator = self._match_pattern_over if self._has_wildcards(last_token) else self._glob_helper

src/s/a/saycbridge-HEAD/src/tests/harness.py   saycbridge(Download)
        vulnerability_string = expectation[3] if len(expectation) > 3 else None
        hand = Hand.from_cdhs_string(hand_string)
        call_history = CallHistory.from_string(history_string, vulnerability_string=vulnerability_string)
        return cls(test_group, hand, call_history, expected_call)
 

src/s/a/saycbridge-HEAD/src/core/tests/test_callhistory.py   saycbridge(Download)
    def test_copy_with_partial_history(self):
        history = CallHistory.from_string("P P 1N P P P")
        self.assertEquals(len(history.calls), 6)
        self.assertEquals(len(history.copy_with_partial_history(0).calls), 0)
        self.assertEquals(len(history.copy_with_partial_history(2).calls), 2)
    def _assert_is_legal_call(self, history_string, call_name, is_legal=True):
        call_history = CallHistory.from_string(history_string)
        call = Call.from_string(call_name)
        self.assertEquals(call_history.is_legal_call(call), is_legal)