Exemplo n.º 1
0
def test_data_processing():
    gps = GPS(debug=1)
    data = GPSData(dictwrapper({'class': 'TPV', 'time': '2010-04-30T11:48:20.10Z', 'lat': 46.498204497,
                                'lon': 7.568061439, 'alt': 1327.689, 'track': 10.3797, 'speed': 0.091,
                                'climb': -0.085}))
    gps.read()
    assert_equal(gps.get_data(), data)
Exemplo n.º 2
0
def test_data_processing():
    gps = GPS(debug=1)
    data = GPSData(
        dictwrapper({
            'class': 'TPV',
            'time': '2010-04-30T11:48:20.10Z',
            'lat': 46.498204497,
            'lon': 7.568061439,
            'alt': 1327.689,
            'track': 10.3797,
            'speed': 0.091,
            'climb': -0.085
        }))
    gps.read()
    assert_equal(gps.get_data(), data)