19 sys.path.insert(1,
"../")
23 from NumberingPolicy
import *
29 self.
__dnp = DefaultNumberingPolicy()
32 OpenRTM_aist.Manager.instance().shutdownManager()
36 self.assertEqual(self.__dnp.onCreate(
"test0"),
"0")
37 self.assertEqual(self.__dnp.onCreate(
"test1"),
"1")
38 self.assertEqual(self.__dnp.onCreate(
"test1"),
"2")
43 self.__dnp.onCreate(
"test")
44 self.__dnp.onCreate(
"test0")
45 self.__dnp.onDelete(
"test")
46 self.assertEqual(self.__dnp.onCreate(
"test1"),
"0")
47 self.assertEqual(self.__dnp.onCreate(
"test"),
"2")
56 if __name__ ==
'__main__':