Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 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)