)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"f90aa32a773ed3cd92948564cac491307b991787","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix mock_object function"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change Test.mock_object function to allow creation mocks with return_value\u003dFalse."},{"line_number":10,"context_line":"This would be useful for further tests createion."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ic1fdebb3c35b6a87b5b9dd9c6f8ff4e3bef4abab"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_e0c7f042","line":10,"updated":"2015-06-01 09:55:33.000000000","message":"typo in \"createion\".","commit_id":"b06f8f3bfd5e0d5ddce32010f2f414a07b60f72f"},{"author":{"_account_id":7331,"name":"Julia Varlamova","email":"jvarlamova@mirantis.com","username":"jvarlamova"},"change_message_id":"4eb01c8f0371bd4993b9bf8aa6aab1a6a6a61df0","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix mock_object function"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change Test.mock_object function to allow creation mocks with return_value\u003dFalse."},{"line_number":10,"context_line":"This would be useful for further tests createion."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ic1fdebb3c35b6a87b5b9dd9c6f8ff4e3bef4abab"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_007a0cbd","line":10,"in_reply_to":"7a016987_e0c7f042","updated":"2015-06-01 10:03:32.000000000","message":"Thank you!","commit_id":"b06f8f3bfd5e0d5ddce32010f2f414a07b60f72f"}],"manila/test.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"ab13bc38a06dbf90b30783ccaa60590f1c022995","unresolved":false,"context_lines":[{"line_number":193,"context_line":"        Automatically performs \u0027addCleanup\u0027 for the mock."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        \"\"\""},{"line_number":196,"context_line":"        if new_attr is None:"},{"line_number":197,"context_line":"            new_attr \u003d mock.Mock()"},{"line_number":198,"context_line":"        patcher \u003d mock.patch.object(obj, attr_name, new_attr, **kwargs)"},{"line_number":199,"context_line":"        patcher.start()"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a016987_a74c679e","line":196,"updated":"2015-06-01 14:04:42.000000000","message":"I don\u0027t understand how this change achieves the goal.  You still have to create a mock with a return value of False.  It\u0027s simple enough to do:\n\nself.mock_object(obj, attr, mock.Mock(return_value\u003dFalse))","commit_id":"040f67142868a0f5a5c5903c007278334b960a70"},{"author":{"_account_id":7331,"name":"Julia Varlamova","email":"jvarlamova@mirantis.com","username":"jvarlamova"},"change_message_id":"dd77b6d552083521bd37e68b0ba7453f0092146f","unresolved":false,"context_lines":[{"line_number":193,"context_line":"        Automatically performs \u0027addCleanup\u0027 for the mock."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        \"\"\""},{"line_number":196,"context_line":"        if new_attr is None:"},{"line_number":197,"context_line":"            new_attr \u003d mock.Mock()"},{"line_number":198,"context_line":"        patcher \u003d mock.patch.object(obj, attr_name, new_attr, **kwargs)"},{"line_number":199,"context_line":"        patcher.start()"}],"source_content_type":"text/x-python","patch_set":2,"id":"5afe65bd_d00c7f44","line":196,"in_reply_to":"7a016987_a74c679e","updated":"2015-06-02 07:59:29.000000000","message":"Hi Clinton, thank you for advice! \n\nFor tests in dependent patch set I can\u0027t simply do \u0027self.mock_object(obj, attr, mock.Mock(return_value\u003dFalse))\u0027. I need to mock config opt \u0027driver_handles_share_servers\u0027 to be False, but it should not be the mock.Mock(return_value\u003dFalse) object. Mock.patch.object need to be used for my tests, that\u0027s why I\u0027ve done this change.","commit_id":"040f67142868a0f5a5c5903c007278334b960a70"}]}
