Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
    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)