Known subclasses: twisted.positioning.test.test_nmea.AltitudeFixerTests, twisted.positioning.test.test_nmea.CoordinateFixerTests, twisted.positioning.test.test_nmea.DatestampFixerTests, twisted.positioning.test.test_nmea.InvalidFixTests, twisted.positioning.test.test_nmea.PositionErrorFixerTests, twisted.positioning.test.test_nmea.SpeedFixerTests, twisted.positioning.test.test_nmea.TimestampFixerTests, twisted.positioning.test.test_nmea.ValidFixTests, twisted.positioning.test.test_nmea.VariationFixerTests

Mixin for tests for the fixers on nmea.NMEAAdapter that adapt from NMEA-specific notations to generic Python objects.

Instance Variable adapter The NMEA adapter. (type: nmea.NMEAAdapter)
Method setUp Undocumented
Method _fixerTest A generic adapter fixer test.
adapter =
The NMEA adapter. (type: nmea.NMEAAdapter)
def setUp(self):
Undocumented
def _fixerTest(self, sentenceData, expected=None, exceptionClass=None):

A generic adapter fixer test.

Creates a sentence from the sentenceData and sends that to the adapter. If exceptionClass is not passed, this is assumed to work, and expected is compared with the adapter's internal state. Otherwise, passing the sentence to the adapter is checked to raise exceptionClass.

ParameterssentenceDataRaw sentence content. (type: dict mapping str to str)
expectedThe expected state of the adapter. (type: dict or None)
exceptionClassThe exception to be raised by the adapter. (type: subclass of Exception)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.