Ejemplo n.º 1
0
    def test_checksum_fails2(self):
        p = GPGLL()
        p.nmea_sentence = "$GPGLL,3751.65,S,14507.36,E*78"
        p.checksum = '78'

        result = p.check_chksum()
        self.assertFalse(result)
Ejemplo n.º 2
0
    def test_checksum_fails2(self):
        p = GPGLL()
        p.nmea_sentence = "$GPGLL,3751.65,S,14507.36,E*78"
        p.checksum = '78'

        result = p.check_chksum()
        self.assertFalse(result)
Ejemplo n.º 3
0
    def test_checksum_passes2(self):
        p = GPGLL()
        p.nmea_sentence = "$GPGLL,3751.65,S,14507.36,E*77"
        p.checksum = '77'

        result = p.check_chksum()
        self.assertTrue(result)
Ejemplo n.º 4
0
    def test_checksum_passes2(self):
        p = GPGLL()
        p.nmea_sentence = "$GPGLL,3751.65,S,14507.36,E*77"
        p.checksum = '77'

        result = p.check_chksum()
        self.assertTrue(result)