Exemple #1
0
 def test_should_get_version_keys_expected_value(self):
     code, value, output = call_utils.handler_call("GetVersion")
     self.assertIsInstance(value, dict)
     # Ensure value of keys from returned dictionary
     for expected_key in self.geni_options_expected_key_info:
         expected_key_value = self.geni_options_expected_key_info.get(expected_key).get("value")
         if expected_key_value:
             self.assertEquals(expected_key_value, value.get(expected_key))
Exemple #2
0
 def test_should_get_version_keys_expected_value(self):
     code, value, output = call_utils.handler_call("GetVersion")
     self.assertIsInstance(value, dict)
     # Ensure value of keys from returned dictionary
     for expected_key in self.geni_options_expected_key_info:
         expected_key_value = self.geni_options_expected_key_info.get(
             expected_key).get("value")
         if expected_key_value:
             self.assertEquals(expected_key_value, value.get(expected_key))
Exemple #3
0
 def test_should_get_version_expected_keys(self):
     code, value, output = call_utils.handler_call("GetVersion")
     self.assertIsInstance(value, dict)
     # Ensure keys from returned dictionary
     for expected_key in self.geni_options_expected_key_info:
         self.assertIn(expected_key, value)
Exemple #4
0
 def test_should_get_version_expected_type(self):
     code, value, output = call_utils.handler_call("GetVersion")
     self.assertIsInstance(value, dict)
Exemple #5
0
 def test_should_list_resources_expected_type(self):
     code, value, output = call_utils.handler_call("ListResources", self.geni_params)
     self.assertIsInstance(value, str)
Exemple #6
0
 def test_should_get_version_expected_keys(self):
     code, value, output = call_utils.handler_call("GetVersion")
     self.assertIsInstance(value, dict)
     # Ensure keys from returned dictionary
     for expected_key in self.geni_options_expected_key_info:
         self.assertIn(expected_key, value)
Exemple #7
0
 def test_should_get_version_expected_type(self):
     code, value, output = call_utils.handler_call("GetVersion")
     self.assertIsInstance(value, dict)