)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"a6727b4cfa372f63043882d66db284a3d9aa5988","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I7328e62269212ccd9c7950ff064a3e337de56918"},{"line_number":14,"context_line":"Closes-bug: 1323832"},{"line_number":15,"context_line":"Related-bug: 1322945"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3ae8d1ca_26bc6cbb","line":15,"updated":"2014-05-28 08:26:03.000000000","message":"not able to open this bug - wrong bug number?","commit_id":"b5fbb1b7aa9405d7f59390d6daf505c2867c606d"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"cb138b64b3d6126b7c3c60d1a0affa48c7f24954","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I7328e62269212ccd9c7950ff064a3e337de56918"},{"line_number":14,"context_line":"Closes-bug: 1323832"},{"line_number":15,"context_line":"Related-bug: 1322945"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3ae8d1ca_ce482f8a","line":15,"in_reply_to":"3ae8d1ca_26bc6cbb","updated":"2014-05-28 16:39:02.000000000","message":"works for me: https://bugs.launchpad.net/neutron/+bug/1322945","commit_id":"b5fbb1b7aa9405d7f59390d6daf505c2867c606d"}],"neutron/agent/linux/utils.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"80f5818d4996cac41e61bf05dc2ec6df4d6b62f1","unresolved":false,"context_lines":[{"line_number":72,"context_line":"              \"Stderr: %(stderr)r\") % {\u0027cmd\u0027: cmd, \u0027code\u0027: obj.returncode,"},{"line_number":73,"context_line":"                                       \u0027stdout\u0027: _stdout, \u0027stderr\u0027: _stderr}"},{"line_number":74,"context_line":"        if obj.returncode:"},{"line_number":75,"context_line":"            LOG.error(m)"},{"line_number":76,"context_line":"        else:"},{"line_number":77,"context_line":"            LOG.debug(m)"},{"line_number":78,"context_line":"        if obj.returncode and check_exit_code:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_a9c5c15c","line":75,"updated":"2014-05-27 20:49:22.000000000","message":"Suggestion: move L79 here\n\n if check_exit_code:\n     raise RuntimeError(m)","commit_id":"4052086a9f813835fc20a415121672bf110d5840"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"bae61d6851e82b1e3efaff84c56bcf9b8b5f899d","unresolved":false,"context_lines":[{"line_number":72,"context_line":"              \"Stderr: %(stderr)r\") % {\u0027cmd\u0027: cmd, \u0027code\u0027: obj.returncode,"},{"line_number":73,"context_line":"                                       \u0027stdout\u0027: _stdout, \u0027stderr\u0027: _stderr}"},{"line_number":74,"context_line":"        if obj.returncode:"},{"line_number":75,"context_line":"            LOG.error(m)"},{"line_number":76,"context_line":"        else:"},{"line_number":77,"context_line":"            LOG.debug(m)"},{"line_number":78,"context_line":"        if obj.returncode and check_exit_code:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_4977ddd4","line":75,"in_reply_to":"3ae8d1ca_a9c5c15c","updated":"2014-05-27 21:00:32.000000000","message":"Done","commit_id":"4052086a9f813835fc20a415121672bf110d5840"}],"neutron/tests/unit/test_agent_linux_utils.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"d75979e2d5f6e56918c47645f196049063f6d149","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.tests import base"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"class FakeCreateProcess(object):"},{"line_number":24,"context_line":"    class FakeStdin(object):"},{"line_number":25,"context_line":"        def close(self):"},{"line_number":26,"context_line":"            pass"}],"source_content_type":"text/x-python","patch_set":3,"id":"3ae8d1ca_c102ab3d","line":23,"updated":"2014-05-29 06:27:17.000000000","message":"I\u0027m curious if there is a better way to write this without introducing this fake class? I guess just more mocking instead?","commit_id":"77046d0d889a8bff095083ae80a2accd0e25406b"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"b529e5d574f73416bfa26cc15704ab5e95febf39","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                               addl_env\u003d{\u0027foo\u0027: \u0027bar\u0027})"},{"line_number":89,"context_line":"        self.assertEqual(result, expected)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def test_return_code_log_error_raise_runtime(self):"},{"line_number":92,"context_line":"        with mock.patch.object(utils, \u0027create_process\u0027) as create_process:"},{"line_number":93,"context_line":"            create_process.return_value \u003d FakeCreateProcess(1), \u0027ls\u0027"},{"line_number":94,"context_line":"            with mock.patch.object(utils, \u0027LOG\u0027) as log:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3ae8d1ca_27651845","line":91,"updated":"2014-05-29 12:03:05.000000000","message":"How about\n\n with contextlib.nested(\n         mock.patch.object(utils, \u0027create_process\u0027, return_value\u003d(mock.Mock(returncode\u003d1), \u0027ls\u0027),\n         mock.patch.object(utils, \u0027LOG\u0027) as (create_process, log):\n     self.assertRaises(...)\n     self.assertTrue(...)","commit_id":"77046d0d889a8bff095083ae80a2accd0e25406b"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"076c2acc97ee819d055bb0d717f1724e4f30c22a","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                               addl_env\u003d{\u0027foo\u0027: \u0027bar\u0027})"},{"line_number":89,"context_line":"        self.assertEqual(result, expected)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def test_return_code_log_error_raise_runtime(self):"},{"line_number":92,"context_line":"        with mock.patch.object(utils, \u0027create_process\u0027) as create_process:"},{"line_number":93,"context_line":"            create_process.return_value \u003d FakeCreateProcess(1), \u0027ls\u0027"},{"line_number":94,"context_line":"            with mock.patch.object(utils, \u0027LOG\u0027) as log:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3ae8d1ca_0ae9f9b7","line":91,"in_reply_to":"3ae8d1ca_27651845","updated":"2014-05-29 16:39:48.000000000","message":"meh same thing as this basically only saves one indent. The rest of the mutimocks in this file dont\u0027 use contextlib.nested() either. If i have to rebase i will change .","commit_id":"77046d0d889a8bff095083ae80a2accd0e25406b"}]}
