Changeset 41:a3f71b4eaca1 in xplra for test/multigettest.py
- Timestamp:
- 02/14/13 18:32:21 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/multigettest.py
r35 r41 16 16 xplane.connect() 17 17 print "Connected to X-Plane." 18 print 19 20 wrongGetter = xplane.createMultiGetter(); 21 wrongGetter.addInt("sim/time/local_date_days"); 22 wrongGetter.addInt("sim/time/paused"); 23 wrongGetter.addInt("sim/time/hello_te_lo"); 24 wrongGetter.addFloat("sim/time/zulu_time_sec"); 25 wrongGetter.addInt("sim/operation/prefs/replay_mode"); 26 27 print "Executing a multi-dataref getter with an invalid dataref..." 28 try: 29 wrongGetter.execute(); 30 print ">>>>>>>>>>>>>>>>>>>>> Succeeded, but it should not have!!!!" 31 except ProtocolException, e: 32 print "Caught protocol exception: " + str(e) 33 print 34 35 print "Executing a registered multi-dataref getter with an invalid dataref..." 36 wrongGetter.register() 37 try: 38 wrongGetter.execute(); 39 print ">>>>>>>>>>>>>>>>>>>>> Succeeded, but it should not have!!!!" 40 except ProtocolException, e: 41 print "Caught protocol exception: " + str(e) 18 42 print 19 43
Note:
See TracChangeset
for help on using the changeset viewer.