'The positioning error is updated across multiple states.'

def test_positionErrorUpdateAcrossStates(self):

    sentences = ([GPGSA] + GPGSV_SEQ)
    callbacksFired = ['positionErrorReceived', 'beaconInformationReceived']
    def _getIdentifiers(beacons):
        return sorted(map(attrgetter('identifier'), beacons))
    def checkBeaconInformation():
        beaconInformation = self.adapter._state['beaconInformation']
        seenIdentifiers = _getIdentifiers(beaconInformation.seenBeacons)
        expected = [3, 4, 6, 13, 14, 16, 18, 19, 22, 24, 27]
        self.assertEqual(seenIdentifiers, expected)
        usedIdentifiers = _getIdentifiers(beaconInformation.usedBeacons)
        self.assertEqual(usedIdentifiers, [14, 18, 19, 22, 27])
    self._receiverTest(sentences, callbacksFired, checkBeaconInformation)
