def cbRendered(ignored):
    self.assertEqual(request.responseCode, 500)
    errors = self.flushLoggedErrors(pb.NoSuchMethod)
    self.assertEqual(len(errors), 1)
    expected = [b'', b'<html>', b'  <head><title>500 - Server Connection Lost</title></head>', b'  <body>', b'    <h1>Server Connection Lost</h1>', b'    <p>Connection to distributed server lost:<pre>[Failure instance: Traceback from remote host -- twisted.spread.flavors.NoSuchMethod: No such method: remote_request', b']</pre></p>', b'  </body>', b'</html>', b'']
    self.assertEqual([b'\n'.join(expected)], request.written)
def cbRendered(ignored):
    self.assertEqual(request.responseCode, 500)
    errors = self.flushLoggedErrors(pb.NoSuchMethod)
    self.assertEqual(len(errors), 1)
    expected = [b, b'<html>', b'  <head><title>500 - Server Connection Lost</title></head>', b'  <body>', b'    <h1>Server Connection Lost</h1>', b'    <p>Connection to distributed server lost:<pre>[Failure instance: Traceback from remote host -- twisted.spread.flavors.NoSuchMethod: No such method: remote_request', b']</pre></p>', b'  </body>', b'</html>', b]
    self.assertEqual([b'\n'.join(expected)], request.written)