

def test_handler_with_exception_handler(self):
    self.conn.request('GET', '/test_server_exception')
    res = self.conn.getresponse()
    self.assertEquals(res.status, 500)
    resp = json.loads(res.read())
    self.assertEquals("SilentException('Server side error',)", resp['exception'])
    self.conn.request('POST', '/test_server_exception')
    res = self.conn.getresponse()
    self.assertEquals(res.status, 500)
    resp = json.loads(res.read())
    self.assertEquals("SilentException('Server side error',)", resp['exception'])

dataset/ETHPy150Open natduca/quickopen/src/daemon_test.py DaemonTest.test_handler_with_exception_handler/original