ardupilot/mk/PX4/Tools/genmsg/test/test_genmsg_base.py

17 lines
347 B
Python
Raw Normal View History

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