Lines Matching refs:arguments
36 def _check_duration(self, arguments, duration): argument
37 start_time = (arguments.until - duration * 3600)
38 assert arguments.since == start_time
41 def _check_default_end(self, arguments, end_time): argument
43 assert arguments.until >= end_time
44 assert arguments.until <= max_end
50 arguments = self._try_parse([])
51 self._check_default_end(arguments, end_time)
52 self._check_duration(arguments, dut_status._DEFAULT_DURATION)
65 arguments = self._try_parse([option, start_time_string])
66 self._check_default_end(arguments, end_time)
67 assert arguments.since == start_time
79 arguments = self._try_parse([option, end_time_string])
80 assert arguments.until == end_time
81 self._check_duration(arguments, dut_status._DEFAULT_DURATION)
94 arguments = self._try_parse([option, duration_string])
95 self._check_default_end(arguments, end_time)
96 self._check_duration(arguments, duration)
105 arguments = self._try_parse(['--s', start_time_string,
107 assert arguments.since == start_time
108 assert arguments.until == end_time
117 arguments = self._try_parse(['--s', start_time_string,
119 assert arguments.since == start_time
120 self._check_duration(arguments, duration)
129 arguments = self._try_parse(['--u', end_time_string,
131 assert arguments.until == end_time
132 self._check_duration(arguments, duration)