|
@@ -618,6 +618,16 @@ class TestMultiConfigData(unittest.TestCase):
|
|
|
maps = self.mcd.get_value_maps("/Spec22/value9/")
|
|
|
self.assertEqual(expected, maps)
|
|
|
|
|
|
+ # A slash at the end should not produce different output with
|
|
|
+ # indices too
|
|
|
+ expected2 = [{'default': True,
|
|
|
+ 'type': 'integer',
|
|
|
+ 'name': 'Spec22/value5[1]',
|
|
|
+ 'value': 'b',
|
|
|
+ 'modified': False}]
|
|
|
+ maps = self.mcd.get_value_maps("/Spec22/value5[1]/")
|
|
|
+ self.assertEqual(expected2, maps)
|
|
|
+
|
|
|
def test_get_value_maps_named_set(self):
|
|
|
module_spec = isc.config.module_spec_from_file(self.data_path + os.sep + "spec32.spec")
|
|
|
self.mcd.set_specification(module_spec)
|