Lines Matching refs:arguments
37 arguments = dut_status._parse_command(
39 dut_status._validate_time_range(arguments)
40 return arguments
42 def _check_duration(self, arguments, duration): argument
43 start_time = (arguments.until - duration * 3600)
44 self.assertEqual(arguments.since, start_time)
49 arguments = self._try_parse([])
50 self.assertEqual(arguments.until, end_time)
51 self._check_duration(arguments, dut_status._DEFAULT_DURATION)
62 arguments = self._try_parse([option, start_time_string])
63 self.assertEqual(arguments.until, end_time)
64 self.assertEqual(arguments.since, start_time)
74 arguments = self._try_parse([option, end_time_string])
75 self.assertEqual(arguments.until, end_time)
76 self._check_duration(arguments, dut_status._DEFAULT_DURATION)
87 arguments = self._try_parse([option, duration_string])
88 self.assertEqual(arguments.until, end_time)
89 self._check_duration(arguments, duration)
97 arguments = self._try_parse(['-s', start_time_string,
99 self.assertEqual(arguments.since, start_time)
100 self.assertEqual(arguments.until, end_time)
108 arguments = self._try_parse(['-s', start_time_string,
110 self.assertEqual(arguments.since, start_time)
111 self._check_duration(arguments, duration)
119 arguments = self._try_parse(['-u', end_time_string,
121 self.assertEqual(arguments.until, end_time)
122 self._check_duration(arguments, duration)