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