class documentation

Tests for positioning protocols and their respective sentences.

Method test_attributeAccess A sentence attribute gets the correct value, and accessing an unset attribute (which is specified as being a valid sentence attribute) gets None.
Method test_knownTypeRepr Test the repr of an empty sentence of known type.
Method test_raiseOnBadAttributeAccess Accessing bogus attributes raises AttributeError, *even* when that attribute actually is in the sentence data.
Method test_raiseOnMissingAttributeAccess Accessing a nonexistent attribute raises AttributeError.
Method test_unknownTypeRepr Test the repr of an empty sentence of unknown type.
Class Variable reprTemplate Undocumented
Class Variable sentenceType Undocumented
Method _expectedRepr Builds the expected repr for a sentence.
def test_attributeAccess(self): (source)

A sentence attribute gets the correct value, and accessing an unset attribute (which is specified as being a valid sentence attribute) gets None.

def test_knownTypeRepr(self): (source)

Test the repr of an empty sentence of known type.

def test_raiseOnBadAttributeAccess(self): (source)

Accessing bogus attributes raises AttributeError, *even* when that attribute actually is in the sentence data.

def test_raiseOnMissingAttributeAccess(self): (source)

Accessing a nonexistent attribute raises AttributeError.

def test_unknownTypeRepr(self): (source)

Test the repr of an empty sentence of unknown type.

reprTemplate: str = (source)

Undocumented

sentenceType: str = (source)

Undocumented

def _expectedRepr(self, sentenceType='unknown type', dataRepr=''): (source)

Builds the expected repr for a sentence.

Parameters
sentenceType:strThe name of the sentence type (e.g "GPGGA").
dataRepr:strThe repr of the data in the sentence.
Returns
strThe expected repr of the sentence.