'Passes a sentence to the protocol and gets the parsed sentence from
the receiver. Then verifies that the parsed sentence contains the
expected data.'

def _parserTest(self, sentence, expected):

    self.protocol.lineReceived(sentence)
    received = self.receiver.receivedSentence
    self.assertEqual(expected, received._sentenceData)
