summaryrefslogtreecommitdiff
path: root/t/01-login.t
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-12-12 16:31:06 -0800
committerIvan Kohler <ivan@freeside.biz>2012-12-12 16:31:06 -0800
commit1d339ad33855e8df8c1f466b494acbfd0e0907da (patch)
treea4a609605840d1ebf666e651efd41663d8f7da83 /t/01-login.t
initial commit
Diffstat (limited to 't/01-login.t')
-rw-r--r--t/01-login.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/01-login.t b/t/01-login.t
new file mode 100644
index 0000000..2642b59
--- /dev/null
+++ b/t/01-login.t
@@ -0,0 +1,17 @@
+#!/usr/bin/perl -w
+
+use Test::More;
+require 't/lib/test_account.pl';
+
+my($login, $password) = test_account_or_skip;
+plan tests => 2;
+
+use_ok 'Net::VoIP_Innovations';
+
+my $gp = Net::VoIP_Innovations->new('login' => $login,
+ 'password' => $password );
+
+#eww. what is the right, TEST_VERBOSE-aware way to do this
+warn Net::VoIP_Innovations->errstr unless $gp;
+
+ok( $gp, 'Login sucessful' );