)]}'
{"barbican/tests/utils.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"bc22594a8067ee5d79a12c9ae74f5ccccca385e0","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    build_kwargs \u003d build_params if isinstance(build_params, dict) else {}"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    # Build a test wrapper to execute with our kwargs"},{"line_number":53,"context_line":"    def test_wrapper(func, new_name, test_args, test_kwargs):"},{"line_number":54,"context_line":"        @functools.wraps(func)"},{"line_number":55,"context_line":"        def wrapper(self):"},{"line_number":56,"context_line":"            return func(self, *test_args, **test_kwargs)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_1c4c1d70","line":53,"updated":"2014-10-01 10:56:36.000000000","message":"I don\u0027t really get why is new_name needed in this wrapper, since it seems to me that it still just returns a function that is called from a certain class (receives self) and that receives an undefined amount of parameters. And this \"new_name\" doesn\u0027t seem to be used... I think I\u0027m missing something, can you help me out understand why is this the way it is? Perhaps add a bit more comments, a docstring or something of the sort.","commit_id":"bb4df934c8fa22cfd67f60e1328eb151402bd2de"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"0919a0e5c55f194deec0b7d796d210ce17add32a","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    build_kwargs \u003d build_params if isinstance(build_params, dict) else {}"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    # Build a test wrapper to execute with our kwargs"},{"line_number":53,"context_line":"    def test_wrapper(func, new_name, test_args, test_kwargs):"},{"line_number":54,"context_line":"        @functools.wraps(func)"},{"line_number":55,"context_line":"        def wrapper(self):"},{"line_number":56,"context_line":"            return func(self, *test_args, **test_kwargs)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_16717577","line":53,"in_reply_to":"baa201ad_1c4c1d70","updated":"2014-10-10 17:14:34.000000000","message":"new_name is actually a leftover piece from when I was trying to figure out how I wanted to deal with constructing the new test method. I have no problem removing new_name; however, considering the numbers of reviews that have already hit both this CR and the dependent CR, I has made this change in the following CR: https://review.openstack.org/#/c/127598","commit_id":"bb4df934c8fa22cfd67f60e1328eb151402bd2de"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"bc22594a8067ee5d79a12c9ae74f5ccccca385e0","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        func_name \u003d \u0027{0}_{1}\u0027.format(name, subtest_name)"},{"line_number":70,"context_line":"        new_func \u003d construct_new_test_function(func_obj, func_name, params)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        # Mark the new function as needed to be added to the class"},{"line_number":73,"context_line":"        to_add.append((func_name, new_func))"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        # Mark key for removal"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_bc7231ab","line":72,"updated":"2014-10-01 10:56:36.000000000","message":"perhaps instead of adding a comment here, a more explicit variable name would be more useful?","commit_id":"bb4df934c8fa22cfd67f60e1328eb151402bd2de"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"0919a0e5c55f194deec0b7d796d210ce17add32a","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        func_name \u003d \u0027{0}_{1}\u0027.format(name, subtest_name)"},{"line_number":70,"context_line":"        new_func \u003d construct_new_test_function(func_obj, func_name, params)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        # Mark the new function as needed to be added to the class"},{"line_number":73,"context_line":"        to_add.append((func_name, new_func))"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        # Mark key for removal"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_369f5952","line":72,"in_reply_to":"baa201ad_bc7231ab","updated":"2014-10-10 17:14:34.000000000","message":"Considering the function\u0027s docstring, I think it\u0027s quite explicit as is. The comments are purely educational.","commit_id":"bb4df934c8fa22cfd67f60e1328eb151402bd2de"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"bc22594a8067ee5d79a12c9ae74f5ccccca385e0","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        # Mark the new function as needed to be added to the class"},{"line_number":73,"context_line":"        to_add.append((func_name, new_func))"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        # Mark key for removal"},{"line_number":76,"context_line":"        to_remove.append(name)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    return to_remove, to_add"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_dc68d5bc","line":75,"updated":"2014-10-01 10:56:36.000000000","message":"Same here.","commit_id":"bb4df934c8fa22cfd67f60e1328eb151402bd2de"}]}
