File: Label.t

package info (click to toggle)
libwebservice-musicbrainz-perl 0.93-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 316 kB
  • ctags: 116
  • sloc: perl: 1,023; makefile: 46
file content (30 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl WebService-MusicBrainz.t'

#########################

# change 'tests => 1' to 'tests => last_test_to_print';

use strict;
use Test::More;
BEGIN { use_ok('WebService::MusicBrainz::Label') };

#########################

# Insert your test code below, the Test::More module is use()ed here so read
# its man page ( perldoc Test::More ) for help writing this test script.

my $sleep_duration = 2;

my $ws = WebService::MusicBrainz::Label->new();
ok( $ws, 'create WebService::MusicBrainz::Label object' );

my $wsde = WebService::MusicBrainz::Label->new(HOST => 'de.musicbrainz.org');
my $wsde_query = $wsde->query();
ok( $wsde_query->{_baseurl} =~ m/de\.musicbrainz\.org/, 'create WebService::MusicBrainz::Label object/altername host' );

sleep($sleep_duration);



done_testing();