a5420149bd
replace with done_testing(), which provides the same "make sure to kvetch if tests fail to run" without requiring humans to do the bookkeeping.
15 lines
366 B
Perl
15 lines
366 B
Perl
#!perl -w
|
|
|
|
sub register_tests {
|
|
my $self = shift;
|
|
$self->register_test("test_authnull");
|
|
}
|
|
|
|
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");
|
|
}
|