test_Listener.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- Python -*-
00003 
00004 #
00005 # \file test_Listener.py
00006 # \brief test for Listener class
00007 # \date $Date: 2007/08/23$
00008 # \author Shinji Kurihara
00009 #
00010 # Copyright (C) 2007
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 Listener import *
00024 import OpenRTM_aist
00025 
00026 class test:
00027   def func(self):
00028     print "test func"
00029 
00030 
00031 class TestListener(unittest.TestCase):
00032   def setUp(self):
00033     self.obj = ListenerObject(test(),test.func)
00034     self.func = ListenerFunc(test().func)
00035 
00036 
00037   def tearDown(self):
00038     OpenRTM_aist.Manager.instance().shutdownManager()
00039     return
00040 
00041   def test_invoke(self):
00042     self.obj.invoke()
00043     self.func.invoke()
00044 
00045 
00046 
00047 ############### test #################
00048 if __name__ == '__main__':
00049         unittest.main()


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