)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":22524,"name":"Mohit Malik","email":"mohit.malik@intel.com","username":"mmalik4"},"change_message_id":"46d9b304bec230fabdde62c524874e252d413f4d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Manjeet Singh Bhatia \u003cmanjeet.s.bhatia@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-08-04 18:22:33 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add a method for deprecating db models."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A method is need to deprecate relocated db models. This patch"},{"line_number":10,"context_line":"will add method which will generate a warning and return new"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"bacf61ea_39e5c937","line":7,"updated":"2016-08-04 18:43:54.000000000","message":"NIT: Function instead of Method ?","commit_id":"a52782aec64648f2c83adfd7b7cf507757bb8cd7"},{"author":{"_account_id":14611,"name":"dasm","display_name":"dasm","email":"dsmigiel@redhat.com","username":"dasm"},"change_message_id":"d342333f238185db0b930bb2cf302a7f110d8534","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add a method for deprecating db models."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A method is need to deprecate relocated db models. This patch"},{"line_number":10,"context_line":"will add method which will generate a warning and return new"},{"line_number":11,"context_line":"model when old model is used."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"bacf61ea_9ed3fbd4","line":9,"range":{"start_line":9,"start_character":12,"end_line":9,"end_character":16},"updated":"2016-08-04 18:34:34.000000000","message":"typo: needed","commit_id":"a52782aec64648f2c83adfd7b7cf507757bb8cd7"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"cf3c721bef8d48a0d79bf7961ccd570b9afe74a9","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A method is needed to deprecate relocated db models. This patch"},{"line_number":10,"context_line":"will add method which will generate a warning and return new"},{"line_number":11,"context_line":"model when old model is used."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I3c418abc987b7eb5502ded8dbf8fda01c41c9919"},{"line_number":14,"context_line":"Related-Bug: #1597913"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"bacf61ea_9f113507","line":11,"updated":"2016-08-04 19:36:29.000000000","message":"it would be good to also note why debtcollector.moves.moved_class will not work in this situation as that will likely be a confusion point.","commit_id":"d7546ddfe4e1fd0bbdf38c06e56e65debe3a0472"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"711fd6e05d2592f5d9225631005bb8e14432b84c","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A method is needed to deprecate relocated db models. This patch"},{"line_number":10,"context_line":"will add method which will generate a warning and return new"},{"line_number":11,"context_line":"model when old model is used."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I3c418abc987b7eb5502ded8dbf8fda01c41c9919"},{"line_number":14,"context_line":"Related-Bug: #1597913"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"bacf61ea_d49b8f64","line":11,"in_reply_to":"bacf61ea_9f113507","updated":"2016-08-04 20:22:32.000000000","message":"done !!","commit_id":"d7546ddfe4e1fd0bbdf38c06e56e65debe3a0472"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"e1d592e73c90d9bec8ea3eaacb9649c5859cfaa4","unresolved":false,"context_lines":[{"line_number":11,"context_line":"model when old model is used."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Note: debtcollector\u0027s moves.moved_class is not used because"},{"line_number":14,"context_line":"it returns old class which does not exists.In this method it will"},{"line_number":15,"context_line":"return new class instead of old class. This method will direct"},{"line_number":16,"context_line":"old_class to new class and issues a warning."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"bacf61ea_9cebdcdb","line":14,"range":{"start_line":14,"start_character":36,"end_line":14,"end_character":45},"updated":"2016-08-05 13:01:05.000000000","message":"exists -\u003e exist\nadd space after period","commit_id":"d3d153dbbe7a030ed352550d3b4ec1c48db1bdd0"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"e1d592e73c90d9bec8ea3eaacb9649c5859cfaa4","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Note: debtcollector\u0027s moves.moved_class is not used because"},{"line_number":14,"context_line":"it returns old class which does not exists.In this method it will"},{"line_number":15,"context_line":"return new class instead of old class. This method will direct"},{"line_number":16,"context_line":"old_class to new class and issues a warning."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I3c418abc987b7eb5502ded8dbf8fda01c41c9919"},{"line_number":19,"context_line":"Related-Bug: #1597913"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"bacf61ea_9cc2bc51","line":16,"range":{"start_line":16,"start_character":3,"end_line":16,"end_character":4},"updated":"2016-08-05 13:01:05.000000000","message":"Is there a reason for underscore in old_class but not in new class?","commit_id":"d3d153dbbe7a030ed352550d3b4ec1c48db1bdd0"}],"neutron/common/utils.py":[{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"cf3c721bef8d48a0d79bf7961ccd570b9afe74a9","unresolved":false,"context_lines":[{"line_number":701,"context_line":"    \"\"\"method to deprecate a model class."},{"line_number":702,"context_line":""},{"line_number":703,"context_line":"    :param new_class: Name of new class to which old one relocated"},{"line_number":704,"context_line":"    :param old_class: Name of old class which is removed"},{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"}],"source_content_type":"text/x-python","patch_set":3,"id":"bacf61ea_3fbc8905","line":704,"updated":"2016-08-04 19:36:29.000000000","message":"so in the test the old_class is a string, while the new_class is actually a class ref.  if old_class must be a string then this should definitely make that distinction.  \"Name\" is probably not a good identifier for a class.","commit_id":"d7546ddfe4e1fd0bbdf38c06e56e65debe3a0472"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"711fd6e05d2592f5d9225631005bb8e14432b84c","unresolved":false,"context_lines":[{"line_number":701,"context_line":"    \"\"\"method to deprecate a model class."},{"line_number":702,"context_line":""},{"line_number":703,"context_line":"    :param new_class: Name of new class to which old one relocated"},{"line_number":704,"context_line":"    :param old_class: Name of old class which is removed"},{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"}],"source_content_type":"text/x-python","patch_set":3,"id":"bacf61ea_7418e31e","line":704,"in_reply_to":"bacf61ea_3fbc8905","updated":"2016-08-04 20:22:32.000000000","message":"it can be class name or string deprecate warning will spit whatever passed to it. will add a identifier.","commit_id":"d7546ddfe4e1fd0bbdf38c06e56e65debe3a0472"},{"author":{"_account_id":6951,"name":"Brandon Logan","email":"brandon.logan@rackspace.com","username":"brandon-logan"},"change_message_id":"cf3c721bef8d48a0d79bf7961ccd570b9afe74a9","unresolved":false,"context_lines":[{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class %s does not exist\" % new_class)"},{"line_number":709,"context_line":""},{"line_number":710,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"},{"line_number":711,"context_line":"    warnings.warn(prefix, category\u003dDeprecationWarning)"},{"line_number":712,"context_line":"    return new_class"}],"source_content_type":"text/x-python","patch_set":3,"id":"bacf61ea_9f43f512","line":711,"updated":"2016-08-04 19:36:29.000000000","message":"should debtcollector.deprecate be used instead of warnings.warn? i honestly don\u0027t know, i\u0027m just posing this as a qeustion for other reviewers.","commit_id":"d7546ddfe4e1fd0bbdf38c06e56e65debe3a0472"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"711fd6e05d2592f5d9225631005bb8e14432b84c","unresolved":false,"context_lines":[{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class %s does not exist\" % new_class)"},{"line_number":709,"context_line":""},{"line_number":710,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"},{"line_number":711,"context_line":"    warnings.warn(prefix, category\u003dDeprecationWarning)"},{"line_number":712,"context_line":"    return new_class"}],"source_content_type":"text/x-python","patch_set":3,"id":"bacf61ea_14f887c2","line":711,"in_reply_to":"bacf61ea_9f43f512","updated":"2016-08-04 20:22:32.000000000","message":"deprecate itself is using warnings.warn so went direct way to be more simple and precise.","commit_id":"d7546ddfe4e1fd0bbdf38c06e56e65debe3a0472"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"b1e4f90eb5d582f25d0e25f13802cc2a8ca955ae","unresolved":false,"context_lines":[{"line_number":700,"context_line":"def moved_model(new_class, old_class):"},{"line_number":701,"context_line":"    \"\"\"method to deprecate a model class."},{"line_number":702,"context_line":""},{"line_number":703,"context_line":"    :param new_class: Name of new class to which old one relocated"},{"line_number":704,"context_line":"    :param old_class (str or classname): Name of old class which is removed"},{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_07405b33","line":703,"range":{"start_line":703,"start_character":22,"end_line":703,"end_character":29},"updated":"2016-08-04 20:40:59.000000000","message":"This cannot be a name. \"new_class\" must be a class object. The docstring needs to be updated. Otherwise L.707 does not work.","commit_id":"1f783aa060bb7a0e8dbef880af94d4eb80849851"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"b1e4f90eb5d582f25d0e25f13802cc2a8ca955ae","unresolved":false,"context_lines":[{"line_number":700,"context_line":"def moved_model(new_class, old_class):"},{"line_number":701,"context_line":"    \"\"\"method to deprecate a model class."},{"line_number":702,"context_line":""},{"line_number":703,"context_line":"    :param new_class: Name of new class to which old one relocated"},{"line_number":704,"context_line":"    :param old_class (str or classname): Name of old class which is removed"},{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_c77003a7","line":703,"range":{"start_line":703,"start_character":57,"end_line":703,"end_character":66},"updated":"2016-08-04 20:40:59.000000000","message":"relocated -\u003e is relocated","commit_id":"1f783aa060bb7a0e8dbef880af94d4eb80849851"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"30faf2cfa7d26f306dfc87ac0ee3ed4a5d19e05c","unresolved":false,"context_lines":[{"line_number":700,"context_line":"def moved_model(new_class, old_class):"},{"line_number":701,"context_line":"    \"\"\"method to deprecate a model class."},{"line_number":702,"context_line":""},{"line_number":703,"context_line":"    :param new_class: Name of new class to which old one relocated"},{"line_number":704,"context_line":"    :param old_class (str or classname): Name of old class which is removed"},{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_07f7bb8b","line":703,"range":{"start_line":703,"start_character":57,"end_line":703,"end_character":66},"in_reply_to":"bacf61ea_c77003a7","updated":"2016-08-04 20:51:56.000000000","message":"Done","commit_id":"1f783aa060bb7a0e8dbef880af94d4eb80849851"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"b1e4f90eb5d582f25d0e25f13802cc2a8ca955ae","unresolved":false,"context_lines":[{"line_number":701,"context_line":"    \"\"\"method to deprecate a model class."},{"line_number":702,"context_line":""},{"line_number":703,"context_line":"    :param new_class: Name of new class to which old one relocated"},{"line_number":704,"context_line":"    :param old_class (str or classname): Name of old class which is removed"},{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_47b41334","line":704,"range":{"start_line":704,"start_character":29,"end_line":704,"end_character":38},"updated":"2016-08-04 20:40:59.000000000","message":"classname -\u003e class name","commit_id":"1f783aa060bb7a0e8dbef880af94d4eb80849851"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"30faf2cfa7d26f306dfc87ac0ee3ed4a5d19e05c","unresolved":false,"context_lines":[{"line_number":701,"context_line":"    \"\"\"method to deprecate a model class."},{"line_number":702,"context_line":""},{"line_number":703,"context_line":"    :param new_class: Name of new class to which old one relocated"},{"line_number":704,"context_line":"    :param old_class (str or classname): Name of old class which is removed"},{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_67f03792","line":704,"range":{"start_line":704,"start_character":29,"end_line":704,"end_character":38},"in_reply_to":"bacf61ea_47b41334","updated":"2016-08-04 20:51:56.000000000","message":"Done","commit_id":"1f783aa060bb7a0e8dbef880af94d4eb80849851"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"b1e4f90eb5d582f25d0e25f13802cc2a8ca955ae","unresolved":false,"context_lines":[{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"},{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class %s does not exist\" % new_class)"},{"line_number":709,"context_line":""},{"line_number":710,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"},{"line_number":711,"context_line":"    warnings.warn(prefix, category\u003dDeprecationWarning)"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_87d60b4d","line":708,"range":{"start_line":708,"start_character":25,"end_line":708,"end_character":59},"updated":"2016-08-04 20:40:59.000000000","message":"\"Unexpected class XXX does not exist\" sounds odd. How about \"Unexpected class type \u0027%s\u0027 (expected: class type only)\"?","commit_id":"1f783aa060bb7a0e8dbef880af94d4eb80849851"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"30faf2cfa7d26f306dfc87ac0ee3ed4a5d19e05c","unresolved":false,"context_lines":[{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"},{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class %s does not exist\" % new_class)"},{"line_number":709,"context_line":""},{"line_number":710,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"},{"line_number":711,"context_line":"    warnings.warn(prefix, category\u003dDeprecationWarning)"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_27047f48","line":708,"range":{"start_line":708,"start_character":25,"end_line":708,"end_character":59},"in_reply_to":"bacf61ea_87d60b4d","updated":"2016-08-04 20:51:56.000000000","message":"Done","commit_id":"1f783aa060bb7a0e8dbef880af94d4eb80849851"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8a2b9edaef562aa05db1b61646eccc8454783996","unresolved":false,"context_lines":[{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"},{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class type %s does not exist\""},{"line_number":709,"context_line":"                        \"expected: only class type\" % new_class)"},{"line_number":710,"context_line":""},{"line_number":711,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_aaa2f6ab","line":708,"range":{"start_line":708,"start_character":49,"end_line":708,"end_character":64},"updated":"2016-08-04 21:10:27.000000000","message":"\u0027does not exist\u0027 is unnecessary.\n\nIn addition, add a period after %s to split the sentence.","commit_id":"c6fcbd327c6736ddee9bb0ec00246a65982f464a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"376d4941370a19bdf59f3e9695307af806ce922c","unresolved":false,"context_lines":[{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"},{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class type %s does not exist\""},{"line_number":709,"context_line":"                        \"expected: only class type\" % new_class)"},{"line_number":710,"context_line":""},{"line_number":711,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_2a28c6e1","line":708,"range":{"start_line":708,"start_character":49,"end_line":708,"end_character":64},"in_reply_to":"bacf61ea_aaa2f6ab","updated":"2016-08-04 21:16:29.000000000","message":"Done","commit_id":"c6fcbd327c6736ddee9bb0ec00246a65982f464a"},{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"e1d592e73c90d9bec8ea3eaacb9649c5859cfaa4","unresolved":false,"context_lines":[{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"},{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class type %s .\""},{"line_number":709,"context_line":"                        \"expected: only class type\" % new_class)"},{"line_number":710,"context_line":""},{"line_number":711,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"}],"source_content_type":"text/x-python","patch_set":8,"id":"bacf61ea_5c7a0425","line":708,"range":{"start_line":708,"start_character":50,"end_line":708,"end_character":52},"updated":"2016-08-05 13:01:05.000000000","message":"add trailing space inside quote","commit_id":"d3d153dbbe7a030ed352550d3b4ec1c48db1bdd0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"dd415b1c7dc87117a4893611d140f2b538b75d12","unresolved":false,"context_lines":[{"line_number":705,"context_line":"    :return: a new class"},{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"},{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class type %s .\""},{"line_number":709,"context_line":"                        \"expected: only class type\" % new_class)"},{"line_number":710,"context_line":""},{"line_number":711,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"}],"source_content_type":"text/x-python","patch_set":8,"id":"bacf61ea_03d4a8e9","line":708,"range":{"start_line":708,"start_character":50,"end_line":708,"end_character":52},"in_reply_to":"bacf61ea_5c7a0425","updated":"2016-08-05 14:14:12.000000000","message":"Or swap period and space.\n\n  \"Unexpected class type %s. \"","commit_id":"d3d153dbbe7a030ed352550d3b4ec1c48db1bdd0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"dd415b1c7dc87117a4893611d140f2b538b75d12","unresolved":false,"context_lines":[{"line_number":706,"context_line":"    \"\"\""},{"line_number":707,"context_line":"    if not inspect.isclass(new_class):"},{"line_number":708,"context_line":"        raise TypeError(\"Unexpected class type %s .\""},{"line_number":709,"context_line":"                        \"expected: only class type\" % new_class)"},{"line_number":710,"context_line":""},{"line_number":711,"context_line":"    prefix \u003d \"Class \u0027%s\u0027 has moved to \u0027%s\u0027\" % (old_class, new_class)"},{"line_number":712,"context_line":"    warnings.warn(prefix, category\u003dDeprecationWarning)"}],"source_content_type":"text/x-python","patch_set":8,"id":"bacf61ea_a3ff9c64","line":709,"range":{"start_line":709,"start_character":25,"end_line":709,"end_character":33},"updated":"2016-08-05 14:14:12.000000000","message":"Capitalize it. \n\n \"Expected: ....\"","commit_id":"d3d153dbbe7a030ed352550d3b4ec1c48db1bdd0"}],"neutron/tests/unit/common/test_utils.py":[{"author":{"_account_id":14611,"name":"dasm","display_name":"dasm","email":"dsmigiel@redhat.com","username":"dasm"},"change_message_id":"d342333f238185db0b930bb2cf302a7f110d8534","unresolved":false,"context_lines":[{"line_number":782,"context_line":""},{"line_number":783,"context_line":"class TestBaseUtils(base.BaseTestCase):"},{"line_number":784,"context_line":""},{"line_number":785,"context_line":"    def test_moved_class_raises_exception(self):"},{"line_number":786,"context_line":"        self.assertRaises(TypeError,"},{"line_number":787,"context_line":"            lambda: utils.moved_model(mock.ANY, mock.ANY))"},{"line_number":788,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bacf61ea_be9cff0e","line":785,"range":{"start_line":785,"start_character":8,"end_line":785,"end_character":41},"updated":"2016-08-04 18:34:34.000000000","message":"Could you rename this test to something like: \"test_incorrect_class\"?","commit_id":"a52782aec64648f2c83adfd7b7cf507757bb8cd7"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"8f4e0e74dbbce97f631c14ca64320d72309f7e19","unresolved":false,"context_lines":[{"line_number":782,"context_line":""},{"line_number":783,"context_line":"class TestBaseUtils(base.BaseTestCase):"},{"line_number":784,"context_line":""},{"line_number":785,"context_line":"    def test_moved_class_raises_exception(self):"},{"line_number":786,"context_line":"        self.assertRaises(TypeError,"},{"line_number":787,"context_line":"            lambda: utils.moved_model(mock.ANY, mock.ANY))"},{"line_number":788,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bacf61ea_de0a9325","line":785,"range":{"start_line":785,"start_character":8,"end_line":785,"end_character":41},"in_reply_to":"bacf61ea_be9cff0e","updated":"2016-08-04 18:37:27.000000000","message":"yea will do that it sounds more meaningful. I\u0027ll make it test_incorrect_class_raises_exception.","commit_id":"a52782aec64648f2c83adfd7b7cf507757bb8cd7"},{"author":{"_account_id":14611,"name":"dasm","display_name":"dasm","email":"dsmigiel@redhat.com","username":"dasm"},"change_message_id":"bbe44f25d678cb0f6ea7161101dee4f5fb61818b","unresolved":false,"context_lines":[{"line_number":782,"context_line":""},{"line_number":783,"context_line":"class TestBaseUtils(base.BaseTestCase):"},{"line_number":784,"context_line":""},{"line_number":785,"context_line":"    def test_moved_class_raises_exception(self):"},{"line_number":786,"context_line":"        self.assertRaises(TypeError,"},{"line_number":787,"context_line":"            lambda: utils.moved_model(mock.ANY, mock.ANY))"},{"line_number":788,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bacf61ea_795f41e5","line":785,"range":{"start_line":785,"start_character":8,"end_line":785,"end_character":41},"in_reply_to":"bacf61ea_de0a9325","updated":"2016-08-04 18:45:26.000000000","message":"OK, thanks.","commit_id":"a52782aec64648f2c83adfd7b7cf507757bb8cd7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e90e5549548c9c86c312b914a150a3783426335f","unresolved":false,"context_lines":[{"line_number":784,"context_line":""},{"line_number":785,"context_line":"    def test_invalid_class_raises_exception(self):"},{"line_number":786,"context_line":"        self.assertRaises(TypeError,"},{"line_number":787,"context_line":"            lambda: utils.moved_model(mock.ANY, mock.ANY))"},{"line_number":788,"context_line":""},{"line_number":789,"context_line":"    def test_moved_class_return_new_class(self):"},{"line_number":790,"context_line":"        test_class \u003d mock.MagicMock"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_3b2ad690","line":787,"range":{"start_line":787,"start_character":12,"end_line":787,"end_character":58},"updated":"2016-08-04 23:14:19.000000000","message":"There is no need to use lambda.\n\n  self.assertRaises(TypeError,\n                    utils.moved_model, mock.ANY, mock.ANY)","commit_id":"0b6dfee52c04c3086b6e6361632d18914c07866a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e7e6723eb4f01dbecf6bfc330659aa4a509a4095","unresolved":false,"context_lines":[{"line_number":784,"context_line":""},{"line_number":785,"context_line":"    def test_invalid_class_raises_exception(self):"},{"line_number":786,"context_line":"        self.assertRaises(TypeError,"},{"line_number":787,"context_line":"            lambda: utils.moved_model(mock.ANY, mock.ANY))"},{"line_number":788,"context_line":""},{"line_number":789,"context_line":"    def test_moved_class_return_new_class(self):"},{"line_number":790,"context_line":"        test_class \u003d mock.MagicMock"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_fd366f4f","line":787,"range":{"start_line":787,"start_character":12,"end_line":787,"end_character":58},"in_reply_to":"bacf61ea_16e9a7e6","updated":"2016-08-05 02:20:49.000000000","message":"Hmm.... I downloaded your patch and change the line accordingly, but I succeeded the unit test. Am I missing something?\n\n        self.assertRaises(\n            TypeError,\n            utils.moved_model, mock.ANY, mock.ANY)","commit_id":"0b6dfee52c04c3086b6e6361632d18914c07866a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"afa1f15c1970a0a74a709052d76756b604ca3230","unresolved":false,"context_lines":[{"line_number":784,"context_line":""},{"line_number":785,"context_line":"    def test_invalid_class_raises_exception(self):"},{"line_number":786,"context_line":"        self.assertRaises(TypeError,"},{"line_number":787,"context_line":"            lambda: utils.moved_model(mock.ANY, mock.ANY))"},{"line_number":788,"context_line":""},{"line_number":789,"context_line":"    def test_moved_class_return_new_class(self):"},{"line_number":790,"context_line":"        test_class \u003d mock.MagicMock"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_16e9a7e6","line":787,"range":{"start_line":787,"start_character":12,"end_line":787,"end_character":58},"in_reply_to":"bacf61ea_3b2ad690","updated":"2016-08-04 23:34:03.000000000","message":"I tried it before direct use of function ends up in exception itself","commit_id":"0b6dfee52c04c3086b6e6361632d18914c07866a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2073cdeee0786ad6622268f8bf0ae4f7b512f8d4","unresolved":false,"context_lines":[{"line_number":784,"context_line":""},{"line_number":785,"context_line":"    def test_invalid_class_raises_exception(self):"},{"line_number":786,"context_line":"        self.assertRaises(TypeError,"},{"line_number":787,"context_line":"            lambda: utils.moved_model(mock.ANY, mock.ANY))"},{"line_number":788,"context_line":""},{"line_number":789,"context_line":"    def test_moved_class_return_new_class(self):"},{"line_number":790,"context_line":"        test_class \u003d mock.MagicMock"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_fba154f8","line":787,"range":{"start_line":787,"start_character":12,"end_line":787,"end_character":58},"in_reply_to":"bacf61ea_a31a186d","updated":"2016-08-05 05:17:33.000000000","message":"Thanks.\n\nit is always confusing. we need to use different ways to pass method parameters for assertRaises and assertEqual.","commit_id":"0b6dfee52c04c3086b6e6361632d18914c07866a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"121f2e603b8ed7e9ff14e77fd78b309d98b11ed1","unresolved":false,"context_lines":[{"line_number":784,"context_line":""},{"line_number":785,"context_line":"    def test_invalid_class_raises_exception(self):"},{"line_number":786,"context_line":"        self.assertRaises(TypeError,"},{"line_number":787,"context_line":"            lambda: utils.moved_model(mock.ANY, mock.ANY))"},{"line_number":788,"context_line":""},{"line_number":789,"context_line":"    def test_moved_class_return_new_class(self):"},{"line_number":790,"context_line":"        test_class \u003d mock.MagicMock"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_a31a186d","line":787,"range":{"start_line":787,"start_character":12,"end_line":787,"end_character":58},"in_reply_to":"bacf61ea_fd366f4f","updated":"2016-08-05 03:07:34.000000000","message":"I called it different way\n\nself.assertRaises(TypeError,\n                  utils.moved_model(mock.ANY, mock.ANY))\n\nusing lambda is same as syntax you posted. I ll change it","commit_id":"0b6dfee52c04c3086b6e6361632d18914c07866a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e90e5549548c9c86c312b914a150a3783426335f","unresolved":false,"context_lines":[{"line_number":789,"context_line":"    def test_moved_class_return_new_class(self):"},{"line_number":790,"context_line":"        test_class \u003d mock.MagicMock"},{"line_number":791,"context_line":"        self.assertEqual(test_class,"},{"line_number":792,"context_line":"            utils.moved_model(test_class, \"old_class\"))"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_b6225ba1","line":792,"updated":"2016-08-04 23:14:19.000000000","message":"The indent level should match the opening parenthesis in the previous line. Or move \"test_class\" to a new line.","commit_id":"0b6dfee52c04c3086b6e6361632d18914c07866a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"27c80a36bfc5fcf01ad36683d702a264de5cc316","unresolved":false,"context_lines":[{"line_number":789,"context_line":"    def test_moved_class_return_new_class(self):"},{"line_number":790,"context_line":"        test_class \u003d mock.MagicMock"},{"line_number":791,"context_line":"        self.assertEqual(test_class,"},{"line_number":792,"context_line":"            utils.moved_model(test_class, \"old_class\"))"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_960637cc","line":792,"in_reply_to":"bacf61ea_b6225ba1","updated":"2016-08-04 23:29:49.000000000","message":"will fix it I wonder how local pep8 passed this","commit_id":"0b6dfee52c04c3086b6e6361632d18914c07866a"}]}
