Home
last modified time | relevance | path

Searched refs:match_fns (Results 1 – 2 of 2) sorted by relevance

/system/bt/gd/cert/
Dtruth.py60 def emits(self, *match_fns, at_least_times=1, timeout=DEFAULT_TIMEOUT): argument
61 if len(match_fns) == 0:
63 elif len(match_fns) == 1:
64 …NOT_FOR_YOU_assert_event_occurs(self._value, match_fns[0], at_least_times=at_least_times, timeout=…
67 return MultiMatchStreamSubject(self._value, match_fns, timeout)
69 def emitsNone(self, *match_fns, timeout=DEFAULT_TIMEOUT): argument
70 if len(match_fns) == 0:
73 elif len(match_fns) == 1:
74 NOT_FOR_YOU_assert_none_matching(self._value, match_fns[0], timeout=timeout)
82 def __init__(self, stream, match_fns, timeout): argument
[all …]
Devent_stream.py236 match_fns, argument
240 pending_matches = list(match_fns)
256 len(matched_order) == len(match_fns),
257 msg=("Expected at least %d events, but got %d" % (len(match_fns), len(matched_order))))
261 while i < len(match_fns):
262 if match_fns[i] is not matched_order[i]:
266 …sert_true(correct_order, "Events not received in correct order %s %s" % (match_fns, matched_order))