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