Exemplo n.º 1
0
 def test__verify_node_info(self):
     common._verify_node_info("properties",
                              {"a": True,
                               "b": False,
                               "c": 0,
                               "d": "something",
                               "e": "somethingelse"},
                              ["a", "b", "c", "e"])
Exemplo n.º 2
0
 def test__verify_node_info_missing_values_empty_string(self):
     with self.assertRaisesRegex(exception.MissingParameterValue,
                                 "'properties:a', 'properties:b'"):
         common._verify_node_info("properties", {
             "a": '',
             "b": None,
             "c": "something"
         }, ["a", "b", "c"])
Exemplo n.º 3
0
 def test__verify_node_info(self):
     common._verify_node_info("properties",
                              {"a": True,
                               "b": False,
                               "c": 0,
                               "d": "something",
                               "e": "somethingelse"},
                              ["a", "b", "c", "e"])
Exemplo n.º 4
0
 def test__verify_node_info_missing_values_empty_string(self):
     with self.assertRaisesRegex(exception.MissingParameterValue,
                                 "'properties:a', 'properties:b'"):
         common._verify_node_info("properties",
                                  {"a": '', "b": None, "c": "something"},
                                  ["a", "b", "c"])