File: 11_useragent.t

package info (click to toggle)
libnet-twitter-perl 3.13008-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 656 kB
  • ctags: 235
  • sloc: perl: 5,408; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!perl

use warnings;
use strict;

use Test::More tests => 3;
use Test::Exception;

use_ok 'Net::Twitter';

my $nt;
lives_ok { $nt = Net::Twitter->new(useragent_args => { timeout => 20 }) }
         'object creation with useragent_args';

is $nt->ua->timeout, 20, 'useragent_args applied';