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


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