'C{LineReceiver.dataReceived} forwards errors returned by
C{rawDataReceived}.'

def test_rawDataError(self):

    proto = basic.LineReceiver()
    proto.rawDataReceived = (lambda data: RuntimeError('oops'))
    transport = proto_helpers.StringTransport()
    proto.makeConnection(transport)
    proto.setRawMode()
    why = proto.dataReceived('data')
    self.assertIsInstance(why, RuntimeError)
