qpsmtpd/t/plugin_tests/auth/authnull
Matt Sergeant ef7d885929 Allow plugin tests to be in subdir (as with plugins).
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@737 958fd67b-6ff1-0310-b445-bb7760255be9
2007-05-17 22:02:32 +00:00

15 lines
380 B
Perl

# -*-perl-*- [emacs]
sub register_tests {
my $self = shift;
$self->register_test("test_authnull", 1);
}
sub test_authnull {
my $self = shift;
my $address = Qpsmtpd::Address->parse('<me@example.com>');
my ($ret, $note) = $self->hook_auth($self->qp->transaction, 'bogus_method',
'bogus_user');
is ($ret, OK, "bogus_user is free to abuse my relay");
}