File: acct_reply.t

package info (click to toggle)
libauthen-radius-perl 0.33-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: perl: 1,057; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings;
use Test::More tests => 3;

BEGIN { use_ok('Authen::Radius', qw(ACCOUNTING_RESPONSE)) };

my $r = Authen::Radius->new(Host => '127.0.0.1', Secret => 'secret', Debug => 0);
ok($r, 'object created');

# without any attributes
my $reply = $r->send_packet(ACCOUNTING_RESPONSE);
ok($reply);
# diag $r->get_error;
# diag $r->error_comment;