def test_middleSentence(self):
        """
        A sentence in the middle of a GSV sequence is correctly
        identified (as being neither the last nor the first).
        """
        self.protocol.lineReceived(GPGSV_MIDDLE)
        sentence = self.receiver.receivedSentence

        self.assertFalse(sentence._isFirstGSVSentence())
        self.assertFalse(sentence._isLastGSVSentence())

        A sentence in the middle of a GSV sequence is correctly
        identified (as being neither the last nor the first).
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/positioning/test/test_nmea.py