ardupilot/mk/PX4/Tools/genmsg/test/test_genmsg_base.py
Andrew Tridgell 5d6bed2814 PX4: added genmsg and gencpp tools
these are needed for the latest PX4Firmware build
2015-02-14 12:25:44 +11:00

17 lines
347 B
Python

def test_log():
from genmsg.base import log
log("hello", "there")
def test_plog():
class Foo(object):
pass
from genmsg.base import plog
plog("hello", Foo())
def test_exceptions():
from genmsg import InvalidMsgSpec
try:
raise InvalidMsgSpec('hello')
except InvalidMsgSpec:
pass