Debian Codegraph @

t/plugin_tests/auth/authdeny

raw
1 #!perl -w
2
3 sub register_tests {
4 my $self = shift;
5 $self->register_test("test_authdeny", 1);
6 }
7
8 sub test_authdeny {
9 my $self = shift;
10 my $address = Qpsmtpd::Address->parse('<[email protected]>');
11 my ($ret, $note) = $self->hook_auth($self->qp->transaction, 'bogus_method',
12 'bogus_user');
13 is ($ret, DECLINED, "bogus_user is not free to abuse my relay");
14 }