File: 02-dual.t

package info (click to toggle)
libwww-myspace-perl 0.82-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 728 kB
  • ctags: 170
  • sloc: perl: 4,646; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 569 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
#!perl -T

use Test::More tests => 2;
#use Test::More 'no_plan';

use lib 't';
use TestConfig;
login_myspace or die "Login Failed - can't run tests";

SKIP: {
	skip "Not logged in", 2 unless $CONFIG->{login};

	# Make sure we've got two accounts and didn't accidentally use the
	# same one twice.
	cmp_ok( $CONFIG->{'acct1'}->{'myspace'}->my_friend_id, '!=',
		$CONFIG->{'acct2'}->{'friend_id'}, 'Verify friend ID' );
	
	# Check friendID method.
	cmp_ok( $CONFIG->{'acct1'}->{'myspace'}->my_friend_id, '==',
		$CONFIG->{'acct1'}->{'friend_id'}, 'Verify friend ID' );

}