test_InPortProvider.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- Python -*-
3 
4 #
5 # \file test_InPortProvider.py
6 # \brief test for InPortProvider class
7 # \date $Date: 2007/09/20 $
8 # \author Shinji Kurihara
9 #
10 # Copyright (C) 2006
11 # Noriaki Ando
12 # Task-intelligence Research Group,
13 # Intelligent Systems Research Institute,
14 # National Institute of
15 # Advanced Industrial Science and Technology (AIST), Japan
16 # All rights reserved.
17 
18 
19 import sys
20 sys.path.insert(1,"../")
21 
22 import unittest
23 
24 from InPortProvider import *
25 import OpenRTM_aist
26 
27 
28 class TestInPortProvider(unittest.TestCase):
29  def setUp(self):
30  return
31 
32  def tearDown(self):
33  OpenRTM_aist.Manager.instance().shutdownManager()
34  return
35 
37  InPortProviderFactory.instance().setInterfaceType("corba_cdr")
38  InPortProviderFactory.instance().setDataFlowType("push,pull")
39  InPortProviderFactory.instance().setSubscriptionType("flush,new,periodic")
40  InPortProviderFactory.instance().publishInterfaceProfile([])
41 
43  InPortProviderFactory.instance().setInterfaceType("corba_cdr")
44  InPortProviderFactory.instance().setDataFlowType("push,pull")
45  InPortProviderFactory.instance().setSubscriptionType("flush,new,periodic")
46  self.assertEqual(InPortProviderFactory.instance().publishInterface([OpenRTM_aist.NVUtil.newNV("dataport.interface_type","corba_cdr")]),True)
47 
48 
49 ############### test #################
50 if __name__ == '__main__':
51  unittest.main()
def newNV(name, value)
Create NameVale.
Definition: NVUtil.py:50


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