def test_config_show(self, serviceclient, fixture_cmd2): result = subject.iot_hub_configuration_show( fixture_cmd2, config_id=config_id, hub_name=mock_target["entity"]) args = serviceclient.call_args url = args[0][0].url method = args[0][0].method assert "{}/configurations/{}?".format(mock_target["entity"], config_id) in url assert method == "GET" assert isinstance(result, dict)
def test_config_show_error(self, serviceclient_generic_error, fixture_cmd2): with pytest.raises(CLIError): subject.iot_hub_configuration_show(fixture_cmd2, config_id=config_id, hub_name=mock_target["entity"])