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)
def test_thread(): gps = GPS(debug=1) gps.start() time.sleep(.2) 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})) assert_equal(gps.get_data(), data) gps.cleanup()
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)
def test_thread(): gps = GPS(debug=1) gps.start() time.sleep(.2) 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 })) assert_equal(gps.get_data(), data) gps.cleanup()