Main Page
Namespaces
Classes
Files
File List
File Members
src
jsk_topic_tools
tests
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
9
def
test_unresolve_name_0
():
10
node_name =
'relay_0'
11
name =
'relay_0/input'
12
assert_equal(
unresolve_name
(node_name, name),
'~input'
)
13
14
15
def
test_unresolve_name_1
():
16
node_name =
'relay_0'
17
name =
'relay_1/input'
18
assert_equal(
unresolve_name
(node_name, name), name)
test_name_utils.test_unresolve_name_0
def test_unresolve_name_0()
Definition:
test_name_utils.py:9
test_name_utils.test_unresolve_name_1
def test_unresolve_name_1()
Definition:
test_name_utils.py:15
jsk_topic_tools.name_utils
Definition:
name_utils.py:1
jsk_topic_tools.name_utils.unresolve_name
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