initial version appears to be hooked up and working against dev sandbox
[Net-VoIP_Innovations.git] / t / 62-getDIDs.t
1 #!/usr/bin/perl -w
2
3 #BEGIN {
4 #  $Net::HTTPS::Any::skip_NetSSLeay = 1;
5 #  $Net::HTTPS::Any::skip_NetSSLeay = 1;
6 #}
7
8 use Test::More;
9
10 require 't/lib/test_account.pl';
11 require Net::VoIP_Innovations;
12
13 my($login, $password) = test_account_or_skip();
14 plan tests => 1;
15
16
17 my $debug = $ENV{TEST_VERBOSE};
18
19 my $gp = Net::VoIP_Innovations->new( 'login'    => $login,
20                                      'password' => $password,
21                                      #'debug' => 2,
22                                      #'debug'    => $debug,
23                                    );
24 my $return = $gp->getDIDs(
25   'state'   => 'CA',
26   'lata'    => '722',
27   #'npa'   => '415',
28   'orderby' => 'ORDER BY npa', #?
29 );
30
31 use Data::Dumper;
32
33 #test some things about the return...
34 ok( $return->{type} ne 'Error', 'getDIDs returned no error' );
35 diag( Dumper($return) ) if $return->{type} eq 'Error';
36