19 sys.path.insert(1,
"../")
23 from PublisherFlush
import *
37 self.assertEqual(self._pf.init(
None),OpenRTM_aist.DataPortStatus.PORT_OK)
41 self.assertEqual(self._pf.setConsumer(
None),OpenRTM_aist.DataPortStatus.INVALID_ARGS)
42 self.assertEqual(self._pf.init(
Consumer()),OpenRTM_aist.DataPortStatus.PORT_OK)
46 self.assertEqual(self._pf.setBuffer(
None),OpenRTM_aist.DataPortStatus.PORT_OK)
55 self.assertEqual(self._pf.write(123,0,0),OpenRTM_aist.DataPortStatus.PRECONDITION_NOT_MET)
57 OpenRTM_aist.DataPortStatus.PORT_OK)
59 OpenRTM_aist.DataPortStatus.PORT_OK)
60 self.assertEqual(self._pf.write(123,0,0),OpenRTM_aist.DataPortStatus.CONNECTION_LOST)
64 self.assertEqual(self._pf.isActive(),
False)
65 self.assertEqual(self._pf.activate(),OpenRTM_aist.DataPortStatus.PORT_OK)
66 self.assertEqual(self._pf.isActive(),
True)
67 self.assertEqual(self._pf.activate(),OpenRTM_aist.DataPortStatus.PRECONDITION_NOT_MET)
68 self.assertEqual(self._pf.deactivate(),OpenRTM_aist.DataPortStatus.PORT_OK)
69 self.assertEqual(self._pf.isActive(),
False)
70 self.assertEqual(self._pf.deactivate(),OpenRTM_aist.DataPortStatus.PRECONDITION_NOT_MET)
75 if __name__ ==
'__main__':
The Properties class represents a persistent set of properties.
def test_activate_deactivate_isActive(self)
InPortCorbaCdrConsumer class.
def test_setConsumer(self)