test_name_utils.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 
4 from nose.tools import assert_equal
5 
6 from jsk_topic_tools.name_utils import unresolve_name
7 
8 
10  node_name = 'relay_0'
11  name = 'relay_0/input'
12  assert_equal(unresolve_name(node_name, name), '~input')
13 
14 
16  node_name = 'relay_0'
17  name = 'relay_1/input'
18  assert_equal(unresolve_name(node_name, name), name)
def test_unresolve_name_0()
def test_unresolve_name_1()
def unresolve_name(node_name, name)
Definition: name_utils.py:5


jsk_topic_tools
Author(s): Kei Okada , Yusuke Furuta
autogenerated on Tue Feb 6 2018 03:45:19