File: test_genmsg_base.py

package info (click to toggle)
ros-genmsg 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,004 kB
  • sloc: python: 1,940; makefile: 110; xml: 30
file content (16 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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