)]}'
{"nova/tests/compute/test_compute_api.py":[{"author":{"_account_id":5441,"name":"Andrew Laski","email":"andrew@lascii.com","username":"alaski"},"change_message_id":"5ff5c7df3451b06c4d1fe5fd1bbc3f5bf0c61be7","unresolved":false,"context_lines":[{"line_number":1175,"context_line":"        else:"},{"line_number":1176,"context_line":"            rpcapi \u003d self.compute_api.compute_rpcapi"},{"line_number":1177,"context_line":""},{"line_number":1178,"context_line":"        self.mox.StubOutWithMock(rpcapi, \u0027rebuild_instance\u0027)"},{"line_number":1179,"context_line":"        self.mox.StubOutWithMock(self.compute_api, \u0027update\u0027)"},{"line_number":1180,"context_line":"        self.mox.StubOutWithMock(db, \u0027service_get_by_compute_host\u0027)"},{"line_number":1181,"context_line":"        self.mox.StubOutWithMock(self.compute_api.servicegroup_api,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAWH%2F9vYk%3D","line":1178,"updated":"2014-04-02 13:19:07.000000000","message":"It is now preferred that tests are written with mock rather than mox.  You can find quite a few examples of this throughout the test files.","commit_id":"c91be88a6596e4ffaefe6c3543cb846646c58f6f"},{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"bc6e807f23612e85e10d0cb52838be8d10d7b4bd","unresolved":false,"context_lines":[{"line_number":1175,"context_line":"        else:"},{"line_number":1176,"context_line":"            rpcapi \u003d self.compute_api.compute_rpcapi"},{"line_number":1177,"context_line":""},{"line_number":1178,"context_line":"        self.mox.StubOutWithMock(rpcapi, \u0027rebuild_instance\u0027)"},{"line_number":1179,"context_line":"        self.mox.StubOutWithMock(self.compute_api, \u0027update\u0027)"},{"line_number":1180,"context_line":"        self.mox.StubOutWithMock(db, \u0027service_get_by_compute_host\u0027)"},{"line_number":1181,"context_line":"        self.mox.StubOutWithMock(self.compute_api.servicegroup_api,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAW3%2F%2Fy0U%3D","line":1178,"in_reply_to":"AAAAWH%2F9vYk%3D","updated":"2014-04-10 11:24:05.000000000","message":"let me try to move this into \u0027\u0027nova.tests.compute.test_compute.ComputeAPITestCase.test_evacuate\u0027, thanks","commit_id":"c91be88a6596e4ffaefe6c3543cb846646c58f6f"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"04b4fd99dfcfe6cc846266c25ca7c9f19ed0db69","unresolved":false,"context_lines":[{"line_number":1211,"context_line":"        self.mox.ReplayAll()"},{"line_number":1212,"context_line":"        self.compute_api.evacuate(ctx, instance,"},{"line_number":1213,"context_line":"                                  \u0027fake_host\u0027, False,"},{"line_number":1214,"context_line":"                                  admin_password\u003d\u0027fake\u0027)"},{"line_number":1215,"context_line":""},{"line_number":1216,"context_line":"    def test_pause(self):"},{"line_number":1217,"context_line":"        # Ensure instance can be paused."}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAWH%2F%2Fqbs%3D","line":1214,"updated":"2014-03-14 16:27:12.000000000","message":"Seriously, there was no unit test for evacuate? :(","commit_id":"c91be88a6596e4ffaefe6c3543cb846646c58f6f"},{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"e7b1e4d28a716859e0ea742a84721e595426229f","unresolved":false,"context_lines":[{"line_number":1211,"context_line":"        self.mox.ReplayAll()"},{"line_number":1212,"context_line":"        self.compute_api.evacuate(ctx, instance,"},{"line_number":1213,"context_line":"                                  \u0027fake_host\u0027, False,"},{"line_number":1214,"context_line":"                                  admin_password\u003d\u0027fake\u0027)"},{"line_number":1215,"context_line":""},{"line_number":1216,"context_line":"    def test_pause(self):"},{"line_number":1217,"context_line":"        # Ensure instance can be paused."}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAWH%2F%2FiHA%3D","line":1214,"in_reply_to":"AAAAWH%2F%2Fqbs%3D","updated":"2014-03-17 09:10:10.000000000","message":"Jay, there is test for evacuate in \u0027nova.tests.compute.test_compute.ComputeAPITestCase.test_evacuate\u0027, I want to use mox to test this case, so I write at here,\nthat is similar with other tests in this file. But I\u0027m not sure the different between test_compute_api.py and test_compute.py, they looks sames to test comptue api.","commit_id":"c91be88a6596e4ffaefe6c3543cb846646c58f6f"}]}
