diff --git a/test/test_proprietary.py b/test/test_proprietary.py index ce6aea3..51eb4d4 100644 --- a/test/test_proprietary.py +++ b/test/test_proprietary.py @@ -63,20 +63,12 @@ class ABC(pynmea2.ProprietarySentence): def test_proprietary_with_comma(): - # class with no extra comma - class TNLDG(pynmea2.tnl.TNL): - fields = () - - # raise Exception(TNL.sentence_types) - # raise Exception(pynmea2.ProprietarySentence.sentence_types) - data = "$PTNLDG,44.0,33.0,287.0,100,0,4,1,0,,,*3E" msg = pynmea2.parse(data) - assert isinstance(msg, TNLDG) + assert isinstance(msg, pynmea2.tnl.TNLDG) assert msg.data == ['DG', '44.0', '33.0', '287.0', '100', '0', '4', '1', '0', '', '', ''] assert str(msg) == data - # type with extra comma data = '$PTNL,PJT,NAD83(Conus),CaliforniaZone 4 0404*51'