test_OutPortConnector.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- Python -*-
00003 
00004 #
00005 #  \file test_OutPortConnector.py
00006 #  \brief test for OutPortConnector class
00007 #  \date $Date: 2007/09/19$
00008 #  \author Shinji Kurihara
00009 # 
00010 #  Copyright (C) 2006
00011 #      Noriaki Ando
00012 #      Task-intelligence Research Group,
00013 #      Intelligent Systems Research Institute,
00014 #      National Institute of
00015 #          Advanced Industrial Science and Technology (AIST), Japan
00016 #      All rights reserved.
00017 # 
00018 
00019 import sys
00020 sys.path.insert(1,"../")
00021 
00022 from omniORB import *
00023 from omniORB import any
00024 
00025 import unittest
00026 from OutPortConnector import *
00027 
00028 import RTC, RTC__POA
00029 
00030 import OpenRTM_aist
00031 
00032 
00033 
00034 class TestOutPortConnector(unittest.TestCase):
00035         def setUp(self):
00036                 self._profile = OpenRTM_aist.ConnectorBase.Profile("test",
00037                                                                    "id",
00038                                                                    ["in","out"],
00039                                                                    OpenRTM_aist.Properties())
00040 
00041                 self._oc = OutPortConnector(self._profile)
00042                 return
00043 
00044         def test_profile(self):
00045                 self.assertEqual(self._oc.profile(), self._profile)
00046                 return
00047 
00048 
00049         def test_id(self):
00050                 self.assertEqual(self._oc.id(), "id")
00051                 return
00052 
00053 
00054         def test_name(self):
00055                 self.assertEqual(self._oc.name(),"test")
00056                 return
00057 
00058 
00059 ############### test #################
00060 if __name__ == '__main__':
00061         unittest.main()


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:28