)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"a75419c8b4825e4d136897fb625a3fee8b5e86d8","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"In the unit tests for managed objects, explicitly iterates through the"},{"line_number":16,"context_line":"objects and tests changes for each attribute of the objects to check"},{"line_number":17,"context_line":"__ne__ is working correctly."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: If8bb85cc8e08d99e2c7f30e04945925538f53730"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a29b11f_b67a7275","line":17,"updated":"2015-10-23 08:27:09.000000000","message":"is this the case? I seem to be missing something.","commit_id":"4f13a1f2c5fadfa659fa81ab8f9b46f899dd70e1"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"cf59d13fdb520cb6341b74b7b80e8b487fabea81","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"In the unit tests for managed objects, explicitly iterates through the"},{"line_number":16,"context_line":"objects and tests changes for each attribute of the objects to check"},{"line_number":17,"context_line":"__ne__ is working correctly."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: If8bb85cc8e08d99e2c7f30e04945925538f53730"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a29b11f_5adc5574","line":17,"in_reply_to":"3a29b11f_b67a7275","updated":"2015-10-23 14:10:02.000000000","message":"I could word this better.  Thanks!","commit_id":"4f13a1f2c5fadfa659fa81ab8f9b46f899dd70e1"}],"castellan/common/objects/managed_object.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"3913d60ac4e7390e0852d99ac0c87136142eeb86","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def __eq__(self, other):"},{"line_number":63,"context_line":"        if type(other) is type(self):"},{"line_number":64,"context_line":"            return self.__dict__ \u003d\u003d other.__dict__"},{"line_number":65,"context_line":"        return False"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    def __ne__(self, other):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a26ad4f_741d420e","line":64,"updated":"2015-10-30 04:39:53.000000000","message":"I think this is too broad. If I have an instance of SymmetricKey and another instance that is that with a mixin of something that does logging. I would consider the two to be equal, but I believe the __dict__ would be different because the methods are different.","commit_id":"4f13a1f2c5fadfa659fa81ab8f9b46f899dd70e1"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"753efe8fd56bbd3265fd829785a38636cad75c35","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def __eq__(self, other):"},{"line_number":63,"context_line":"        if type(other) is type(self):"},{"line_number":64,"context_line":"            return self.__dict__ \u003d\u003d other.__dict__"},{"line_number":65,"context_line":"        return False"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    def __ne__(self, other):"}],"source_content_type":"text/x-python","patch_set":2,"id":"da85f559_707b0ef6","line":64,"in_reply_to":"1a26ad4f_741d420e","updated":"2015-11-10 19:55:18.000000000","message":"I agree with Nathan here. My thoughts are that you can check if \"self.__dict__\" is a subset of \"other.__dict__\" solving the problem of equal objects with different methods.","commit_id":"4f13a1f2c5fadfa659fa81ab8f9b46f899dd70e1"}],"castellan/common/objects/private_key.py":[{"author":{"_account_id":6783,"name":"Nathan Reller","email":"nathan.s.reller@gmail.com","username":"rellerreller"},"change_message_id":"97d067f7531017d2ad75238850ab1a4f7036c898","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def __eq__(self, other):"},{"line_number":59,"context_line":"        if isinstance(other, PrivateKey):"},{"line_number":60,"context_line":"            return (self._alg \u003d\u003d other._alg and"},{"line_number":61,"context_line":"                    self._bit_length \u003d\u003d other._bit_length and"},{"line_number":62,"context_line":"                    self._key \u003d\u003d other._key and"},{"line_number":63,"context_line":"                    self._name \u003d\u003d other._name)"},{"line_number":64,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a2ca52d_0497ee48","line":61,"updated":"2015-10-15 12:59:34.000000000","message":"Do we need the bit_length as a property? If the key is an array then we should use that as the length. Otherwise the two properties could be out of sync.","commit_id":"1e59c7acf1a9a32ff50dc3563342fd53f76e5f9e"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"71fcdfa9dbf23dbf89c62389507573da6c4e4f75","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def __eq__(self, other):"},{"line_number":59,"context_line":"        if isinstance(other, PrivateKey):"},{"line_number":60,"context_line":"            return (self._alg \u003d\u003d other._alg and"},{"line_number":61,"context_line":"                    self._bit_length \u003d\u003d other._bit_length and"},{"line_number":62,"context_line":"                    self._key \u003d\u003d other._key and"},{"line_number":63,"context_line":"                    self._name \u003d\u003d other._name)"},{"line_number":64,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a29b11f_36837058","line":61,"in_reply_to":"5a2ca52d_0497ee48","updated":"2015-10-19 21:55:40.000000000","message":"I see your point, but that only works for symmetric keys!\n\nFor symmetric keys, bit length represents the actual length of the key, but for private/public, the length of the array is going to be more than the bit_length because of all the metadata stored in the format.  Also, at least for RSA, bit length is the length of just the modulus, and there\u0027re more values than the modulus that make up the key, such as the exponents and other values used in computations.  \n\nTechnically, you could compute the bit length given the bytes of a public/private key, but it\u0027s a little more involved than taking the length of the array of bytes and would be different based on the algorithm.","commit_id":"1e59c7acf1a9a32ff50dc3563342fd53f76e5f9e"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8515b000fc906825f9f87468e1d4635cbfadea99","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def __eq__(self, other):"},{"line_number":59,"context_line":"        if isinstance(other, PrivateKey):"},{"line_number":60,"context_line":"            return (self._alg \u003d\u003d other._alg and"},{"line_number":61,"context_line":"                    self._bit_length \u003d\u003d other._bit_length and"},{"line_number":62,"context_line":"                    self._key \u003d\u003d other._key and"},{"line_number":63,"context_line":"                    self._name \u003d\u003d other._name)"},{"line_number":64,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba8a016a_c46257d8","line":61,"updated":"2015-11-23 19:49:06.000000000","message":"I checked symmetric key, and public key and this value is already checked as well!","commit_id":"2e9d25c242a9414db9bc02a141e542e718dae74f"}],"castellan/tests/unit/objects/test_opaque.py":[{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8515b000fc906825f9f87468e1d4635cbfadea99","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    def test_get_name(self):"},{"line_number":43,"context_line":"        self.assertEqual(self.name, self.opaque_data.name)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    def test___eq__(self):"},{"line_number":46,"context_line":"        self.assertTrue(self.opaque_data \u003d\u003d self.opaque_data)"},{"line_number":47,"context_line":"        self.assertTrue(self.opaque_data is self.opaque_data)"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"ba8a016a_e42f5b86","line":45,"updated":"2015-11-23 19:49:06.000000000","message":"Looks good!","commit_id":"2e9d25c242a9414db9bc02a141e542e718dae74f"}],"castellan/tests/unit/objects/test_private_key.py":[{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8515b000fc906825f9f87468e1d4635cbfadea99","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                                           self.encoded,"},{"line_number":66,"context_line":"                                           self.name)"},{"line_number":67,"context_line":"        self.assertTrue(self.key \u003d\u003d other_key)"},{"line_number":68,"context_line":"        self.assertFalse(self.key is other_key)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def test___ne___none(self):"},{"line_number":71,"context_line":"        self.assertTrue(self.key is not None)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba8a016a_440f47e1","line":68,"updated":"2015-11-23 19:49:06.000000000","message":"All __ne__ look good to me!","commit_id":"2e9d25c242a9414db9bc02a141e542e718dae74f"}],"castellan/tests/unit/objects/test_symmetric_key.py":[{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"8515b000fc906825f9f87468e1d4635cbfadea99","unresolved":false,"context_lines":[{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def test___ne___length(self):"},{"line_number":81,"context_line":"        other_key \u003d sym_key.SymmetricKey(self.algorithm,"},{"line_number":82,"context_line":"                                         self.bit_length * 2,"},{"line_number":83,"context_line":"                                         self.encoded,"},{"line_number":84,"context_line":"                                         self.name)"},{"line_number":85,"context_line":"        self.assertTrue(self.key !\u003d other_key)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba8a016a_249fa351","line":82,"updated":"2015-11-23 19:49:06.000000000","message":"To keep consistency do the same as test__ne__encoded where different_encoded is set before it is passed or edit test__ne__encoded to have self.encoded * 2.","commit_id":"2e9d25c242a9414db9bc02a141e542e718dae74f"}]}
