Searched refs:cmp_for_sort (Results 1 – 2 of 2) sorted by relevance
/external/autotest/scheduler/ |
D | scheduler_models_unittest.py | 199 self.assertEqual(0, scheduler_models.Host.cmp_for_sort(host10, host10)) 200 self.assertEqual(1, scheduler_models.Host.cmp_for_sort(host10, host010)) 201 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host010, host10)) 202 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host1, host10)) 203 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host1, host010)) 204 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host3, host10)) 205 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host3, host010)) 206 self.assertEqual(1, scheduler_models.Host.cmp_for_sort(host3, host1)) 207 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host1, host3)) 208 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(alice, host3)) [all …]
|
D | scheduler_models.py | 428 def cmp_for_sort(cls, a, b): member in Host 1431 return Host.cmp_for_sort(entry_a.host, entry_b.host)
|