def test_checksum_fails(self): p = GPGSA() p.checksum = '38' p.nmea_sentence = "$GPGSA,A,3,04,05,,09,12,,,24,,,,,2.5,1.3,2.1*38" result = p.check_chksum() self.assertFalse(result)
def test_checksum_passes(self): p = GPGSA() p.checksum = '39' p.nmea_sentence = "$GPGSA,A,3,04,05,,09,12,,,24,,,,,2.5,1.3,2.1*39" result = p.check_chksum() self.assertTrue(result)