test_defaultsAtLaunch.py
Go to the documentation of this file.
00001 import unittest
00002 from rosparam_handler.param.DefaultsAtLaunchParameters import DefaultsAtLaunchParameters
00003 
00004 
00005 class TestDefaultsAtLaunch(unittest.TestCase):
00006     def test_defaults_at_launch(self):
00007         params = DefaultsAtLaunchParameters()
00008         self.assertEqual(params.int_param_wo_default, 1)
00009         self.assertAlmostEqual(params.double_param_wo_default, 1.1)
00010         self.assertEqual(params.str_param_wo_default, "Hello World")
00011         self.assertEqual(params.bool_param_wo_default, True)
00012 
00013         self.assertEqual(params.vector_int_param_wo_default, [1, 2, 3])
00014         self.assertEqual(params.vector_double_param_wo_default, [1.1, 1.2, 1.3])
00015         self.assertEqual(params.vector_string_param_wo_default, ["Hello", "World"])
00016 
00017         self.assertEqual(params.map_param_wo_default, {"Hello": "World"})
00018         self.assertEqual(params.enum_param_wo_default, 1)


rosparam_handler
Author(s): Claudio Bandera
autogenerated on Sat Jun 8 2019 20:21:53