OpenRTM_aist
test
test_OutPortConnector.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
# -*- Python -*-
3
4
#
5
# \file test_OutPortConnector.py
6
# \brief test for OutPortConnector class
7
# \date $Date: 2007/09/19$
8
# \author Shinji Kurihara
9
#
10
# Copyright (C) 2006
11
# Noriaki Ando
12
# Task-intelligence Research Group,
13
# Intelligent Systems Research Institute,
14
# National Institute of
15
# Advanced Industrial Science and Technology (AIST), Japan
16
# All rights reserved.
17
#
18
19
import
sys
20
sys.path.insert(1,
"../"
)
21
22
from
omniORB
import
*
23
from
omniORB
import
any
24
25
import
unittest
26
from
OutPortConnector
import
*
27
28
import
RTC, RTC__POA
29
30
import
OpenRTM_aist
31
32
33
34
class
TestOutPortConnector
(unittest.TestCase):
35
def
setUp
(self):
36
self.
_profile
= OpenRTM_aist.ConnectorBase.Profile(
"test"
,
37
"id"
,
38
[
"in"
,
"out"
],
39
OpenRTM_aist.Properties
())
40
41
self.
_oc
=
OutPortConnector
(self.
_profile
)
42
return
43
44
def
test_profile
(self):
45
self.assertEqual(self.
_oc
.profile(), self.
_profile
)
46
return
47
48
49
def
test_id
(self):
50
self.assertEqual(self.
_oc
.id(),
"id"
)
51
return
52
53
54
def
test_name
(self):
55
self.assertEqual(self.
_oc
.
name
(),
"test"
)
56
return
57
58
59
60
if
__name__ ==
'__main__'
:
61
unittest.main()
OutPortConnector
test_OutPortConnector.TestOutPortConnector.setUp
def setUp(self)
Definition:
test_OutPortConnector.py:35
test_OutPortConnector.TestOutPortConnector.test_name
def test_name(self)
Definition:
test_OutPortConnector.py:54
OpenRTM_aist.Properties.Properties
The Properties class represents a persistent set of properties.
Definition:
Properties.py:83
test_OutPortConnector.TestOutPortConnector
Definition:
test_OutPortConnector.py:34
test_OutPortConnector.TestOutPortConnector.test_profile
def test_profile(self)
Definition:
test_OutPortConnector.py:44
setup.name
name
Definition:
setup.py:543
test_OutPortConnector.TestOutPortConnector.test_id
def test_id(self)
Definition:
test_OutPortConnector.py:49
test_OutPortConnector.TestOutPortConnector._profile
_profile
Definition:
test_OutPortConnector.py:36
test_OutPortConnector.TestOutPortConnector._oc
_oc
Definition:
test_OutPortConnector.py:41
openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Mon Feb 28 2022 23:01:07