Searched refs:cmp_for_sort (Results 1 – 2 of 2) sorted by relevance
/external/autotest/scheduler/ |
D | scheduler_models_unittest.py | 205 self.assertEqual(0, scheduler_models.Host.cmp_for_sort(host10, host10)) 206 self.assertEqual(1, scheduler_models.Host.cmp_for_sort(host10, host010)) 207 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host010, host10)) 208 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host1, host10)) 209 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host1, host010)) 210 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host3, host10)) 211 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host3, host010)) 212 self.assertEqual(1, scheduler_models.Host.cmp_for_sort(host3, host1)) 213 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(host1, host3)) 214 self.assertEqual(-1, scheduler_models.Host.cmp_for_sort(alice, host3)) [all …]
|
D | scheduler_models.py | 445 def cmp_for_sort(cls, a, b): member in Host 1336 return Host.cmp_for_sort(entry_a.host, entry_b.host)
|