)]}'
{"designate_tempest_plugin/tests/base.py":[{"author":{"_account_id":11662,"name":"Paul Glass","email":"paul.glass@rackspace.com","username":"pglass"},"change_message_id":"e910b4c8fd4808524dcce48291c4e0bf627bf63d","unresolved":false,"context_lines":[{"line_number":50,"context_line":"            return True"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        # Unexpected exceptions will be reraised"},{"line_number":53,"context_line":"        return False"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class BaseDnsTest(test.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"7aa08908_c45ba952","line":53,"updated":"2016-06-14 14:57:12.000000000","message":"Would the contextmanager decorator simplify this - https://docs.python.org/2/library/contextlib.html#contextlib.contextmanager ?\n\n    @contextmanager\n    def AssertRaisesDns(...):\n        try:\n            yield\n            self.fail(...) # no exception\n        except exc_type as e:\n            self.assertEqual(e.resp_body[\u0027code\u0027], code)\n            ...\n\nI think you could still do `context \u003d AssertRaisesDns(...)` with that, but I\u0027m not completely sure.","commit_id":"f940eebdc5d28bb3b92fd0ebc06358668274a44a"},{"author":{"_account_id":741,"name":"Kiall Mac Innes","email":"kiall@macinnes.ie","username":"kiall"},"change_message_id":"884247336c1cdcca889eb1fc8011bab3c16235b2","unresolved":false,"context_lines":[{"line_number":50,"context_line":"            return True"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        # Unexpected exceptions will be reraised"},{"line_number":53,"context_line":"        return False"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class BaseDnsTest(test.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"7aa08908_ff28f298","line":53,"in_reply_to":"7aa08908_c45ba952","updated":"2016-06-14 15:07:15.000000000","message":"From memory, this doesn\u0027t allow for both usage patterns.","commit_id":"f940eebdc5d28bb3b92fd0ebc06358668274a44a"}]}
