Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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
00048 if __name__ == '__main__':
00049 unittest.main()