Lines Matching refs:key
130 def check_stat_positive(self, s, idx, key): argument
131 assert key in s, f'stat #{idx} "{key}" missing: {s}'
132 assert s[key] > 0, f'stat #{idx} "{key}" not positive: {s}'
134 def check_stat_zero(self, s, key): argument
135 assert key in s, f'stat "{key}" missing: {s}'
136 assert s[key] == 0, f'stat "{key}" not zero: {s}'
156 for key in zero_keys:
157 self.check_stat_zero(s, key)
158 for key in pos_keys:
159 self.check_stat_positive(s, idx, key)
161 for key in ['time_appconnect', 'time_connect', 'time_namelookup']:
162 assert s[key] < s['time_pretransfer'], f'time "{key}" larger than' \