Source

perl/keyring/kdewallet / t / 99-cleanup.t

Full commit
#!perl -T

use strict;
use warnings;
use Test::Simple tests => 8;

use Passwd::Keyring::KDEWallet;

my $ring = Passwd::Keyring::KDEWallet->new;

ok( defined($ring) && ref $ring eq 'Passwd::Keyring::KDEWallet',   'new() works' );

$ring->clear_password("Paul", 'my@@domain');
ok(1, "clear_password works");

ok( $ring->clear_password("Gregory", 'my@@domain'));
ok(1, "clear_password works");

ok( $ring->clear_password("Paul", 'other@@domain'));
ok(1, "clear_password works");

ok( $ring->clear_password("Duke", 'my@@domain'));
ok(1, "clear_password works");