mirror of https://github.com/ArduPilot/ardupilot
17 lines
347 B
Python
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
|