示例#1
0
    def test_checksum_fails(self):
        p = GPZDA()
        p.checksum = 'b5'
        p.nmea_sentence = '$GPZDA,025959.000,01,01,1970,,*b5'

        result = p.check_chksum()

        self.assertFalse(result)
示例#2
0
    def test_checksum_fails(self):
        p = GPZDA()
        p.checksum = 'b5'
        p.nmea_sentence = '$GPZDA,025959.000,01,01,1970,,*b5'

        result = p.check_chksum()

        self.assertFalse(result)
示例#3
0
    def test_checksum_passes(self):
        p = GPZDA()
        p.checksum = '5B'
        p.nmea_sentence = '$GPZDA,025959.000,01,01,1970,,*5B'

        result = p.check_chksum()

        self.assertTrue(result)
示例#4
0
    def test_checksum_passes(self):
        p = GPZDA()
        p.checksum = '5B'
        p.nmea_sentence = '$GPZDA,025959.000,01,01,1970,,*5B'

        result = p.check_chksum()

        self.assertTrue(result)