7 use Net::OpenID::VerifiedIdentity;
10 eval q{use Test::More skip_all => "Net::OpenID::VerifiedIdentity not available"};
13 eval q{use Test::More tests => 9};
15 use_ok("IkiWiki::Plugin::openid");
18 # Some typical examples:
20 is(IkiWiki::openiduser('http://josephturian.blogspot.com'), 'josephturian [blogspot.com]');
21 is(IkiWiki::openiduser('http://yam655.livejournal.com/'), 'yam655 [livejournal.com]');
22 is(IkiWiki::openiduser('http://id.mayfirst.org/jamie/'), 'jamie [id.mayfirst.org]');
24 # and some less typical ones taken from the ikiwiki commit history
26 is(IkiWiki::openiduser('http://thm.id.fedoraproject.org/'), 'thm [id.fedoraproject.org]');
27 is(IkiWiki::openiduser('http://dtrt.org/'), 'dtrt.org');
28 is(IkiWiki::openiduser('http://alcopop.org/me/openid/'), 'openid [alcopop.org/me]');
29 is(IkiWiki::openiduser('http://id.launchpad.net/882/bielawski1'), 'bielawski1 [id.launchpad.net/882]');
30 is(IkiWiki::openiduser('http://technorati.com/people/technorati/drajt'), 'drajt [technorati.com/people/technorati]');