20 sys.path.insert(1,
"../")
21 sys.path.insert(1,
"../RTM_IDL")
25 from SdoService
import *
31 self.
sdosp = SDOServiceProfile()
34 OpenRTM_aist.Manager.instance().shutdownManager()
38 sdosp = SDOServiceProfile(
"test",
"test_type")
39 prof = sdosp.getProfile()
40 self.assertEqual(prof.id,
"test")
41 self.assertEqual(prof.type,
"test_type")
44 self.sdosp.setName(
"test")
45 self.assertEqual(self.sdosp.getName(),
"test")
49 self.sdosp.setInterfaceType(
"test_type")
50 self.assertEqual(self.sdosp.getInterfaceType(),
"test_type")
54 self.sdosp.setIdlDefinition(
"test_idl")
55 self.assertEqual(self.sdosp.getIdlDefinition(),
"test_idl")
59 self.sdosp.setProperties(
None)
60 self.assertEqual(self.sdosp.getProperties(),
None)
64 self.sdosp.setServiceRef(
None)
65 self.assertEqual(self.sdosp.getServiceRef(),
None)
69 if __name__ ==
'__main__':
def test_setInterfaceType(self)
def test_getProfile(self)
def test_setServiceRef(self)
def test_setProperties(self)
def test_setIdlDefinition(self)