def test_checksum_fails(self): p = GPRMA() p.checksum = '52' p.nmea_sentence = '$GPRMA,A,4630.129,N,147.372,W,,,12.2,5,7,N*52' result = p.check_chksum() self.assertFalse(result)
def test_checksum_passes(self): p = GPRMA() p.checksum = '51' p.nmea_sentence = '$GPRMA,A,4630.129,N,147.372,W,,,12.2,5,7,N*51' result = p.check_chksum() self.assertTrue(result)