test_SdoService.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- Python -*-
00003 
00004 #
00005 #  \file test_SdoService.py
00006 #  \brief test for SDO Service administration class
00007 #  \date $Date: 2007/09/12 $
00008 #  \author Shinji Kurihara
00009 # 
00010 #  Copyright (C) 2006
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 
00019 import sys
00020 sys.path.insert(1,"../")
00021 sys.path.insert(1,"../RTM_IDL")
00022 
00023 import unittest
00024 
00025 from SdoService import *
00026 import OpenRTM_aist
00027 
00028 
00029 class TestSDOServiceProfile(unittest.TestCase):
00030   def setUp(self):
00031     self.sdosp = SDOServiceProfile()
00032 
00033   def tearDown(self):
00034     OpenRTM_aist.Manager.instance().shutdownManager()
00035     return
00036 
00037   def test_getProfile(self):
00038     sdosp = SDOServiceProfile("test", "test_type")
00039     prof = sdosp.getProfile()
00040     self.assertEqual(prof.id,"test")
00041     self.assertEqual(prof.type,"test_type")
00042     
00043   def test_setName(self):
00044     self.sdosp.setName("test")
00045     self.assertEqual(self.sdosp.getName(),"test")
00046 
00047 
00048   def test_setInterfaceType(self):
00049     self.sdosp.setInterfaceType("test_type")
00050     self.assertEqual(self.sdosp.getInterfaceType(),"test_type")
00051     
00052 
00053   def test_setIdlDefinition(self):
00054     self.sdosp.setIdlDefinition("test_idl")
00055     self.assertEqual(self.sdosp.getIdlDefinition(),"test_idl")
00056 
00057 
00058   def test_setProperties(self):
00059     self.sdosp.setProperties(None)
00060     self.assertEqual(self.sdosp.getProperties(),None)
00061 
00062 
00063   def test_setServiceRef(self):
00064     self.sdosp.setServiceRef(None)
00065     self.assertEqual(self.sdosp.getServiceRef(),None)
00066 
00067   
00068 ############### test #################
00069 if __name__ == '__main__':
00070         unittest.main()


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