def test_dontSwallowCallbackExceptions(self):
        """
        An C{AttributeError} in the sentence callback of an C{NMEAProtocol}
        doesn't get swallowed.
        """
        lineReceived = self.protocol.lineReceived
        self.assertRaises(AttributeError, lineReceived, b'$GPGGA*56')

        An C{AttributeError} in the sentence callback of an C{NMEAProtocol}
        doesn't get swallowed.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/positioning/test/test_nmea.py