'Asserts that the protocol raises C{exceptionClass} when it receives
C{sentence}.
@param exceptionClass: The exception class expected to be raised.
@type exceptionClass: C{Exception} subclass
@param sentence: The (bogus) NMEA sentence.
@type sentence: C{str}'

def assertRaisesOnSentence(self, exceptionClass, sentence):

    self.assertRaises(exceptionClass, self.protocol.lineReceived, sentence)
