test_defaultsAtLaunch.py
Go to the documentation of this file.
1 import unittest
2 from rosparam_handler.param.DefaultsAtLaunchParameters import DefaultsAtLaunchParameters
3 
4 
5 class TestDefaultsAtLaunch(unittest.TestCase):
7  params = DefaultsAtLaunchParameters()
8  self.assertEqual(params.int_param_wo_default, 1)
9  self.assertAlmostEqual(params.double_param_wo_default, 1.1)
10  self.assertEqual(params.str_param_wo_default, "Hello World")
11  self.assertEqual(params.bool_param_wo_default, True)
12 
13  self.assertEqual(params.vector_int_param_wo_default, [1, 2, 3])
14  self.assertEqual(params.vector_double_param_wo_default, [1.1, 1.2, 1.3])
15  self.assertEqual(params.vector_string_param_wo_default, ["Hello", "World"])
16 
17  self.assertEqual(params.map_param_wo_default, {"Hello": "World"})
18  self.assertEqual(params.enum_param_wo_default, 1)


rosparam_handler
Author(s): Claudio Bandera
autogenerated on Wed Jun 5 2019 19:50:35