Example #1
0
    def test_checksum_fails(self):
        p = GPWCV()
        p.checksum = '1B'
        p.nmea_sentence = '$GPWCV,2.3,N,ABCD*1B'

        result = p.check_chksum()

        self.assertFalse(result)
Example #2
0
    def test_checksum_fails(self):
        p = GPWCV()
        p.checksum = '1B'
        p.nmea_sentence = '$GPWCV,2.3,N,ABCD*1B'

        result = p.check_chksum()

        self.assertFalse(result)
Example #3
0
    def test_checksum_passes(self):
        p = GPWCV()
        p.checksum = '1C'
        p.nmea_sentence = '$GPWCV,2.3,N,ABCD*1C'

        result = p.check_chksum()

        self.assertTrue(result)
Example #4
0
    def test_checksum_passes(self):
        p = GPWCV()
        p.checksum = '1C'
        p.nmea_sentence = '$GPWCV,2.3,N,ABCD*1C'

        result = p.check_chksum()

        self.assertTrue(result)