)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"8721fff6eaabc4f6d66e2c6dd6f7fae471769bcb","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Change in Http Error condition check from String to Int"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Use Int for comparing response status instead of Sting"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Icc7cbaef9dda3ec92898d650e242e326eb45166e"},{"line_number":12,"context_line":"Closes-Bug:1608609"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"bacf61ea_6e409936","line":9,"range":{"start_line":9,"start_character":49,"end_line":9,"end_character":54},"updated":"2016-08-02 16:42:50.000000000","message":"String.\n\nJust call me the spelling Police.\n\nSee what I did there?","commit_id":"1f94c4d80dff00bb455d6e4b3e5ce3258161e842"},{"author":{"_account_id":14581,"name":"ymadhavi@in.ibm.com","email":"ymadhavi@in.ibm.com","username":"ymadhavi"},"change_message_id":"3b8526b727f09246edef8c7b0a4740b2def533ae","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Change in Http Error condition check from String to Int"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Use Int for comparing response status instead of Sting"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Icc7cbaef9dda3ec92898d650e242e326eb45166e"},{"line_number":12,"context_line":"Closes-Bug:1608609"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"bacf61ea_5491e251","line":9,"range":{"start_line":9,"start_character":49,"end_line":9,"end_character":54},"in_reply_to":"bacf61ea_6e409936","updated":"2016-08-02 17:27:16.000000000","message":"Done","commit_id":"1f94c4d80dff00bb455d6e4b3e5ce3258161e842"}],"nova_powervm/tests/virt/powervm/nvram/test_manager.py":[{"author":{"_account_id":13289,"name":"Taylor Peoples","email":"tpeoples@us.ibm.com","username":"tpeoples"},"change_message_id":"d185a2816862072c989c72bb701e6f00f84deb6e","unresolved":false,"context_lines":[{"line_number":40,"context_line":"            fixtures.MockPatchObject(self.fake_store, \u0027delete\u0027)).mock"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    @mock.patch.object(vm, \u0027get_instance_wrapper\u0027)"},{"line_number":43,"context_line":"    def test_store_with_exception(self, mock_get_inst):"},{"line_number":44,"context_line":"        mock_resp \u003d mock.Mock()"},{"line_number":45,"context_line":"        mock_resp.status \u003d 404"},{"line_number":46,"context_line":"        mock_resp.reqpath \u003d ("}],"source_content_type":"text/x-python","patch_set":1,"id":"bacf61ea_977c0eed","line":43,"updated":"2016-08-02 13:27:47.000000000","message":"I\u0027m not quite sure what value this test adds? Since the mock_resp.status is set to 404, I would expect the test to make sure that no LOG.exception/LOG.warning calls were made. Or the test should set the status to non-404 and do the opposite to ensure a LOG.exception/LOG.warning calls were indeed made.","commit_id":"ad612962fcd2f4eb06ff791b0e254645c7a0f838"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"84f89f75b4ef30364d89b7f7bb5756b5eb814ea3","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        self.mock_remove \u003d self.useFixture("},{"line_number":40,"context_line":"            fixtures.MockPatchObject(self.fake_store, \u0027delete\u0027)).mock"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.nvram.manager.LOG.warning\u0027)"},{"line_number":43,"context_line":"    @mock.patch.object(vm, \u0027get_instance_wrapper\u0027)"},{"line_number":44,"context_line":"    def test_store_with_exception(self, mock_get_inst, mock_log):"},{"line_number":45,"context_line":"        mock_resp \u003d mock.Mock()"},{"line_number":46,"context_line":"        mock_resp.status \u003d 410"},{"line_number":47,"context_line":"        mock_resp.reqpath \u003d ("},{"line_number":48,"context_line":"            \u0027/rest/api/uom/ManagedSystem/c5d782c7-44e4-3086-ad15-\u0027"},{"line_number":49,"context_line":"            \u0027b16fb039d63b/LogicalPartition/1B5FB633-16D1-4E10-A14\u0027"},{"line_number":50,"context_line":"            \u00275-E6FB905161A3?group\u003dNone\u0027)"},{"line_number":51,"context_line":"        mock_get_inst.side_effect \u003d pvm_exc.HttpError(mock_resp)"},{"line_number":52,"context_line":"        mgr \u003d manager.NvramManager(self.fake_store, mock.Mock(), mock.Mock())"},{"line_number":53,"context_line":"        mgr.store(powervm.TEST_INST1)"},{"line_number":54,"context_line":"        mock_log.assert_called_once_with(u\u0027Unable to store the NVRAM for \u0027"},{"line_number":55,"context_line":"                                         u\u0027instance: %s\u0027,"},{"line_number":56,"context_line":"                                         powervm.TEST_INST1.name)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    @mock.patch.object(vm, \u0027get_instance_wrapper\u0027)"},{"line_number":59,"context_line":"    def test_manager(self, mock_get_inst):"}],"source_content_type":"text/x-python","patch_set":3,"id":"bacf61ea_0fb477cf","line":56,"range":{"start_line":42,"start_character":0,"end_line":56,"end_character":65},"updated":"2016-08-02 17:44:51.000000000","message":"You need a similar test to this where you change the response to 404 and then \u0027mock_log.assert_not_called()\u0027","commit_id":"694545a491afdcdcb54b38f0f798b59c034952bb"},{"author":{"_account_id":14581,"name":"ymadhavi@in.ibm.com","email":"ymadhavi@in.ibm.com","username":"ymadhavi"},"change_message_id":"ef8bb4ea8e5a1d4f8dfa548dc17f59dc4a24e714","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        self.mock_remove \u003d self.useFixture("},{"line_number":40,"context_line":"            fixtures.MockPatchObject(self.fake_store, \u0027delete\u0027)).mock"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.nvram.manager.LOG.warning\u0027)"},{"line_number":43,"context_line":"    @mock.patch.object(vm, \u0027get_instance_wrapper\u0027)"},{"line_number":44,"context_line":"    def test_store_with_exception(self, mock_get_inst, mock_log):"},{"line_number":45,"context_line":"        mock_resp \u003d mock.Mock()"},{"line_number":46,"context_line":"        mock_resp.status \u003d 410"},{"line_number":47,"context_line":"        mock_resp.reqpath \u003d ("},{"line_number":48,"context_line":"            \u0027/rest/api/uom/ManagedSystem/c5d782c7-44e4-3086-ad15-\u0027"},{"line_number":49,"context_line":"            \u0027b16fb039d63b/LogicalPartition/1B5FB633-16D1-4E10-A14\u0027"},{"line_number":50,"context_line":"            \u00275-E6FB905161A3?group\u003dNone\u0027)"},{"line_number":51,"context_line":"        mock_get_inst.side_effect \u003d pvm_exc.HttpError(mock_resp)"},{"line_number":52,"context_line":"        mgr \u003d manager.NvramManager(self.fake_store, mock.Mock(), mock.Mock())"},{"line_number":53,"context_line":"        mgr.store(powervm.TEST_INST1)"},{"line_number":54,"context_line":"        mock_log.assert_called_once_with(u\u0027Unable to store the NVRAM for \u0027"},{"line_number":55,"context_line":"                                         u\u0027instance: %s\u0027,"},{"line_number":56,"context_line":"                                         powervm.TEST_INST1.name)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    @mock.patch.object(vm, \u0027get_instance_wrapper\u0027)"},{"line_number":59,"context_line":"    def test_manager(self, mock_get_inst):"}],"source_content_type":"text/x-python","patch_set":3,"id":"bacf61ea_8c5b2e2e","line":56,"range":{"start_line":42,"start_character":0,"end_line":56,"end_character":65},"in_reply_to":"bacf61ea_0fb477cf","updated":"2016-08-03 11:17:48.000000000","message":"Done","commit_id":"694545a491afdcdcb54b38f0f798b59c034952bb"}]}
