X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F20-methods.t;h=9d260c379cf664d332e9ec4038476b6fac2f48b9;hb=7f358e7af381390ec9f4c727a0a9e8aac94f8d59;hp=f81805cfc22a4209cc9e04ebd1076bad2c47072d;hpb=71ebbb506367ad5efe47a8730eb42963e24f8483;p=perl-cwmp.git diff --git a/t/20-methods.t b/t/20-methods.t index f81805c..9d260c3 100755 --- a/t/20-methods.t +++ b/t/20-methods.t @@ -28,7 +28,7 @@ sub check_method { }; diag "check_method $command",dump( 'state', @_ ) if $debug; - ok( my $xml = $method->$command( $state, @_ ), "generate method $command" . dump(@_) ); + ok( my $xml = $method->$command( $state, shift ), "generate method $command" . dump(@_) ); my $file = "$abs_path/methods/$command.xml"; @@ -45,12 +45,12 @@ sub check_method { check_method( 'InformResponse' ); check_method( 'GetRPCMethods' ); check_method( 'Reboot' ); -check_method( 'SetParameterValues', +check_method( 'SetParameterValues', { 'InternetGatewayDevice.DeviceInfo.ProvisioningCode' => 'test provision', 'InternetGatewayDevice.DeviceInfo.X_000E50_Country' => 42, -); -check_method( 'GetParameterNames', 'InternetGatewayDevice.DeviceInfo.SerialNumber' ); -check_method( 'GetParameterValues', +}); +check_method( 'GetParameterNames', [ 'InternetGatewayDevice.DeviceInfo.SerialNumber' ] ); +check_method( 'GetParameterValues', [ 'InternetGatewayDevice.DeviceInfo.SerialNumber', 'InternetGatewayDevice.DeviceInfo.VendorConfigFile.', -); +]);