)]}'
{"nova/tests/fixtures.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"f89bf6be55cc74cc051cc1d92bec14b4cd0ef905","unresolved":false,"context_lines":[{"line_number":793,"context_line":""},{"line_number":794,"context_line":""},{"line_number":795,"context_line":"class EventReporterStub(fixtures.Fixture):"},{"line_number":796,"context_line":""},{"line_number":797,"context_line":"    def setUp(self):"},{"line_number":798,"context_line":"        super(EventReporterStub, self).setUp()"},{"line_number":799,"context_line":"        self.useFixture(fixtures.MonkeyPatch("}],"source_content_type":"text/x-python","patch_set":7,"id":"ba5da102_0962b5d8","line":796,"updated":"2016-11-05 13:06:05.000000000","message":"A docstring describing what the fixture does would be nice.","commit_id":"03e2f0449adf021774578cb3b457e284e831a509"}],"nova/tests/unit/compute/test_compute_mgr.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"f89bf6be55cc74cc051cc1d92bec14b4cd0ef905","unresolved":false,"context_lines":[{"line_number":70,"context_line":"CONF \u003d nova.conf.CONF"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"class ComputeManagerUnitTestCase(test.NoDBTestCase):"},{"line_number":74,"context_line":"    def setUp(self):"},{"line_number":75,"context_line":"        super(ComputeManagerUnitTestCase, self).setUp()"},{"line_number":76,"context_line":"        self.compute \u003d importutils.import_object(CONF.compute_manager)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba5da102_c9aefde6","line":73,"updated":"2016-11-05 13:06:05.000000000","message":"Alternatively we could probably just mock the EventReporterStub globally on the class using the @mock.patch decorator. There is a way to make it such that mock doesn\u0027t inject a new parameter to each test case, I think it\u0027s if you replace the object being mocked with the new\u003d kwarg. I\u0027m not really sure which approach is better, that or the fixture, they seem equally fine.","commit_id":"03e2f0449adf021774578cb3b457e284e831a509"}]}
