)]}'
{"nova/notifications/base.py":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"9a7cf4c5ebc80453370fb2de76e3d3cd3dbd4ce9","unresolved":false,"context_lines":[{"line_number":321,"context_line":"    \"\"\"Get bandwidth usage information for the instance for the"},{"line_number":322,"context_line":"    specified audit period."},{"line_number":323,"context_line":"    \"\"\""},{"line_number":324,"context_line":"    admin_context \u003d context.elevated(read_deleted\u003d\u0027yes\u0027)"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"    def _get_nwinfo_old_skool():"},{"line_number":327,"context_line":"        \"\"\"Support for getting network info without objects.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"7f515b1d_4befae1c","line":324,"updated":"2017-10-09 21:47:37.000000000","message":"Should be easy to test this based just on this right? Assert things below are called with the return of context.elevated and that it was called with read_deleted?","commit_id":"aa21a32a29bc075b0c8621ff024a79ad3ab023f4"}],"nova/tests/unit/notifications/test_base.py":[{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"657ef9190eae3739d05b11a328470b108d0b89c6","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"class TestBandwidthUsage(test.NoDBTestCase):"},{"line_number":62,"context_line":"    @mock.patch(\u0027nova.context.RequestContext.elevated\u0027)"},{"line_number":63,"context_line":"    @mock.patch(\u0027nova.network.base_api.NetworkAPI.get_instance_nw_info\u0027)"},{"line_number":64,"context_line":"    @mock.patch(\u0027nova.objects.BandwidthUsageList.get_by_uuids\u0027)"},{"line_number":65,"context_line":"    def test_context_elevated(self, mock_get_bw_usage, mock_get_nw_info,"},{"line_number":66,"context_line":"                              mock_elevated):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f4e5783_3c6c5735","line":63,"updated":"2017-10-10 13:28:35.000000000","message":"Weird, this mock.patch works locally but fails in the gate.","commit_id":"21f1f2e90b3818e8779cc549dfdd5f4946cf928e"}]}
