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))
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))
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)
def test_should_get_version_expected_type(self): code, value, output = call_utils.handler_call("GetVersion") self.assertIsInstance(value, dict)
def test_should_list_resources_expected_type(self): code, value, output = call_utils.handler_call("ListResources", self.geni_params) self.assertIsInstance(value, str)