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 ############### test #################
52 if __name__ == '__main__':
53  unittest.main()
54 
The Properties class represents a persistent set of properties.
Definition: Properties.py:83


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:34