Lines Matching refs:histories
135 self.histories = lab_inventory._HostSetInventory()
139 self.histories.record_host(fake)
152 self.assertEqual(self.histories.get_working(), working)
153 self.assertEqual(self.histories.get_broken(), broken)
154 self.assertEqual(self.histories.get_idle(), idle)
155 self.assertEqual(self.histories.get_total(),
376 histories = []
379 histories.append(
381 return histories
478 histories = []
483 histories.extend([fake_host] * counts[p][s])
485 histories, lab_inventory.MANAGED_POOLS)
511 for model, histories in inventory.iteritems():
515 histories.get_working(CRITICAL_POOL),
516 histories.get_broken(CRITICAL_POOL),
517 histories.get_idle(CRITICAL_POOL),
520 histories.get_working(SPARE_POOL),
521 histories.get_broken(SPARE_POOL),
522 histories.get_idle(SPARE_POOL),
527 self.assertEqual(len(histories.get_working_list()),
530 self.assertEqual(len(histories.get_broken_list()),
533 self.assertEqual(len(histories.get_idle_list()),
870 histories = []
876 histories.append(
878 return histories
880 def _parse_pool_summaries(self, histories): argument
902 histories, lab_inventory.MANAGED_POOLS)
946 histories = self._create_histories((pool,),
948 model_text = self._parse_pool_summaries(histories)
958 histories = []
960 histories.extend(
963 model_text = self._parse_pool_summaries(histories)
971 histories = self._create_histories((pool,),
973 text = self._parse_pool_summaries(histories)[pool]
976 histories = self._create_histories((pool,), model_data)
977 text = self._parse_pool_summaries(histories)[pool]
984 histories = self._create_histories((spare_pool,),
986 model_text = self._parse_pool_summaries(histories)
1037 def _get_idle_message(self, histories): argument
1045 histories, lab_inventory.MANAGED_POOLS)