test_Listener.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- Python -*-
3 
4 #
5 # \file test_Listener.py
6 # \brief test for Listener class
7 # \date $Date: 2007/08/23$
8 # \author Shinji Kurihara
9 #
10 # Copyright (C) 2007
11 # Task-intelligence Research Group,
12 # Intelligent Systems Research Institute,
13 # National Institute of
14 # Advanced Industrial Science and Technology (AIST), Japan
15 # All rights reserved.
16 #
17 
18 import sys
19 sys.path.insert(1,"../")
20 
21 import unittest
22 
23 from Listener import *
24 import OpenRTM_aist
25 
26 class test:
27  def func(self):
28  print "test func"
29 
30 
31 class TestListener(unittest.TestCase):
32  def setUp(self):
33  self.obj = ListenerObject(test(),test.func)
34  self.func = ListenerFunc(test().func)
35 
36 
37  def tearDown(self):
38  OpenRTM_aist.Manager.instance().shutdownManager()
39  return
40 
41  def test_invoke(self):
42  self.obj.invoke()
43  self.func.invoke()
44 
45 
46 
47 ############### test #################
48 if __name__ == '__main__':
49  unittest.main()


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:34