19 sys.path.insert(1,
"../")
20 from omniORB
import CORBA
26 from NamingManager
import *
40 self.
_mgr = OpenRTM_aist.Manager.init(sys.argv)
48 self._noc.bindObject(
"test_comp",self._obj)
52 self._noc.unbindObject(
"test_comp")
57 self.
_nm.registerNameServer(
"test_comp",
"localhost")
61 self.
_nm.bindObject(
"test_comp",self.
_obj)
62 self.
_nm.registerNameServer(
"test_comp",
"localhost")
63 self.
_nm.bindObject(
"test_comp",self.
_obj)
68 self.
_nm.registerNameServer(
"test_comp",
"localhost")
73 self.
_nm.registerNameServer(
"test_comp",
"localhost")
78 self.
_nm.unbindObject(
"test_comp")
79 self.
_nm.registerNameServer(
"test_comp",
"localhost")
80 self.
_nm.unbindObject(
"test_comp")
85 self.
_nm.registerCompName(
"rest",self.
_obj)
92 self.
_nm.bindObject(
"test_comp",self.
_obj)
93 self.assertEqual(len(self.
_nm.getObjects()),1)
97 self.
_nm.createNamingObj(
"test",
"localhost")
101 self.
_nm.bindCompsTo(self.
_obj)
105 self.
_nm.registerCompName(
"rest",self.
_obj)
113 self.
_nm.registerCompName(
"rest",self.
_obj)
114 self.
_nm.unregisterCompName(
"rest")
119 self.
_nm.unregisterMgrName(
"rest")
124 if __name__ ==
'__main__':
def test_bindManagerObject(self)
def test_registerMgrName(self)
def test_registerNameServer(self)
def test_bindCompsTo(self)
def test_bindObject(self)
def test_unregisterCompName(self)
def test_registerCompName(self)
def test_getObjects(self)
def test_unregisterMgrName(self)
def test_createNamingObj(self)
def test_unbindObject(self)