Show More
@@ -109,11 +109,13 b' class TestHooksHttpHandler(object):' | |||
|
109 | 109 | with read_patcher, hooks_patcher: |
|
110 | 110 | server = MockServer(hooks_daemon.HooksHttpHandler, request) |
|
111 | 111 | |
|
112 | expected_result = json.dumps({ | |
|
112 | org_exc = json.loads(server.request.output_stream.buflist[-1]) | |
|
113 | expected_result = { | |
|
113 | 114 | 'exception': 'Exception', |
|
114 |
'exception_ |
|
|
115 | }) | |
|
116 | assert server.request.output_stream.buflist[-1] == expected_result | |
|
115 | 'exception_traceback': org_exc['exception_traceback'], | |
|
116 | 'exception_args': ['Test exception'] | |
|
117 | } | |
|
118 | assert org_exc == expected_result | |
|
117 | 119 | |
|
118 | 120 | def test_log_message_writes_to_debug_log(self, caplog): |
|
119 | 121 | ip_port = ('0.0.0.0', 8888) |
General Comments 0
You need to be logged in to leave comments.
Login now