)]}'
{"doc/source/dev/testing.rst":[{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"7ce0de6a1ddf7501c0ead154ba226eb06bf002a0","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Trove unit tests make a frequent use of the Python Mock library."},{"line_number":11,"context_line":"This library lets the caller replace (*\"mock\"*) parts of the system under test with"},{"line_number":12,"context_line":"mock objects and make assertions about how they have been used. [1]_"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"The Problem of Dangling Mocks"},{"line_number":15,"context_line":"-----------------------------"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"fad55976_bb7db8e9","line":13,"updated":"2016-07-15 19:09:33.000000000","message":"Can we add references to web pages that document other common pitfalls?  Something like:\n\n  There are many resources to learn about mocking pitfalls, such as ref1 and ref2.\n\nAnd use these references:\n\n  http://alexmarandon.com/articles/python_mock_gotchas/\n  http://engineroom.trackmaven.com/blog/mocking-mistakes/","commit_id":"bc5d7c126485edbe9c242aacb820e15e7bb862b5"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"7ce0de6a1ddf7501c0ead154ba226eb06bf002a0","unresolved":false,"context_lines":[{"line_number":116,"context_line":"                                return_value\u003d1)) as mocks:"},{"line_number":117,"context_line":"            password_mock \u003d mocks[\u0027generate_random_password\u0027]"},{"line_number":118,"context_line":"            execute_mock \u003d mocks[\u0027execute_with_timeout_mock\u0027]"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"References"},{"line_number":121,"context_line":"----------"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"fad55976_bb649849","line":119,"updated":"2016-07-15 19:09:33.000000000","message":"Can we add a section here for mocking CONF values?  That\u0027s tough and we have a utility method to do it, but new people probably wouldn\u0027t know that.","commit_id":"bc5d7c126485edbe9c242aacb820e15e7bb862b5"}]}
