)]}'
{"nova/tests/unit/scheduler/test_host_manager.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"225794525466a705eea1a9d49d5bd137c6f50da9","unresolved":false,"context_lines":[{"line_number":545,"context_line":"        mock_get_all.return_value \u003d fakes.COMPUTE_NODES"},{"line_number":546,"context_line":"        mock_get_by_binary.return_value \u003d fakes.SERVICES"},{"line_number":547,"context_line":"        context \u003d \u0027fake_context\u0027"},{"line_number":548,"context_line":"        compute_nodes, services \u003d self.host_manager._get_computes_for_cells("},{"line_number":549,"context_line":"            context, self.host_manager.cells)"},{"line_number":550,"context_line":""},{"line_number":551,"context_line":"        # _get_host_states returns a generator, so make a map from it"},{"line_number":552,"context_line":"        host_states_map \u003d {(state.host, state.nodename): state for state in"},{"line_number":553,"context_line":"                           self.host_manager._get_host_states("},{"line_number":554,"context_line":"                               context, compute_nodes, services)}"},{"line_number":555,"context_line":"        self.assertEqual(4, len(host_states_map))"},{"line_number":556,"context_line":""},{"line_number":557,"context_line":"        calls \u003d ["}],"source_content_type":"text/x-python","patch_set":1,"id":"9fb8cfa7_e03a6432","line":554,"range":{"start_line":548,"start_character":0,"end_line":554,"end_character":65},"updated":"2019-06-06 20:44:53.000000000","message":"Seems like it would have been worth writing a\n\n self.get_all_host_states()\n\nto DRY this up and make the test deltas one line each to s/self.host_manager/self/","commit_id":"d7ba0d0dba4c9b2c5fa72d55b38d58f6db2ee891"}]}
