3 use Test::More skip_all => "not working with current test account?";
5 require 't/lib/test_account.pl';
6 require Net::VoIP_Innovations;
8 my($login, $password) = test_account_or_skip();
11 my $debug = $ENV{TEST_VERBOSE};
13 my $gp = Net::VoIP_Innovations->new( 'login' => $login,
14 'password' => $password,
17 my $return = $gp->auditDIDs();
20 diag( Dumper($return) ); # if $debug;
22 ok( $return, 'auditDIDs returned something' );
26 # 'statuscode' => '100',
27 # 'status' => 'Number currently assigned to you with refid rewritten as \'\' to endpoint 521',
29 # 'expire_seconds' => {},
30 # 'availability' => 'assigned',
31 # 'tn' => '2137851430',
33 # 'endpoint' => '521',
37 # 'statuscode' => '100',
38 # 'status' => 'Number currently assigned to you with refid rewritten as \'\' to endpoint 521',
40 # 'expire_seconds' => {},
41 # 'availability' => 'assigned',
42 # 'tn' => '5109626974',
44 # 'endpoint' => '521',
50 ok( $return->{'did'}, 'auditDIDs returned did data' );
52 ok( ref($return->{'did'}) eq 'ARRAY', 'auditDIDs did data is a list' );