)]}'
{"senlin/tests/unit/test_common_context.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"3e851910ddc7fe27fa4265400b090a91c595a5fd","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        ctx \u003d context.RequestContext.from_dict(self.ctx)"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        # Produce a dictionary of only keys we want to verify"},{"line_number":75,"context_line":"        ctx_dict \u003d {k: v for k, v in ctx.to_dict().items() if k in self.ctx}"},{"line_number":76,"context_line":"        self.assertEqual(self.ctx, ctx_dict)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def test_request_context_update(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_c6898c27","line":75,"updated":"2016-07-14 19:22:38.000000000","message":"I think you need to save the ctx.to_dict() result so you can use it both to iterate over and for the contains test (instead of \"in self.ctx\").","commit_id":"13dbc35d7edf10a09b58c310ee2be038aadd33ad"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"dd27ee3d5830ca8dd10e8a5285e5a6aadb6181f5","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        # Produce a dictionary of only keys we want to verify"},{"line_number":75,"context_line":"        ctx_dict \u003d {k: v for k, v in ctx.to_dict().items() if k in self.ctx}"},{"line_number":76,"context_line":"        self.assertEqual(self.ctx, ctx_dict)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def test_request_context_update(self):"},{"line_number":79,"context_line":"        ctx \u003d context.RequestContext.from_dict(self.ctx)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_6c1fd270","line":76,"range":{"start_line":76,"start_character":35,"end_line":76,"end_character":43},"updated":"2016-07-14 22:15:59.000000000","message":"you could probably replace both these with a \n\ndef assertContextDict(self, ctx):\n    ctx_dict \u003d ctx.to_dict() \n    for k, v in self.ctx.items(): \n        self.assertEqual(v, ctx_dict.get(k))\n\nwhich would only check the things in self.ctx","commit_id":"13dbc35d7edf10a09b58c310ee2be038aadd33ad"}]}
