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)
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)