test_name_utils.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: utf-8 -*-
00003 
00004 from nose.tools import assert_equal
00005 
00006 from jsk_topic_tools.name_utils import unresolve_name
00007 
00008 
00009 def test_unresolve_name_0():
00010     node_name = 'relay_0'
00011     name = 'relay_0/input'
00012     assert_equal(unresolve_name(node_name, name), '~input')
00013 
00014 
00015 def test_unresolve_name_1():
00016     node_name = 'relay_0'
00017     name = 'relay_1/input'
00018     assert_equal(unresolve_name(node_name, name), name)


jsk_topic_tools
Author(s): Kei Okada , Yusuke Furuta
autogenerated on Fri Sep 8 2017 03:38:56