7889fa6990
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@264 958fd67b-6ff1-0310-b445-bb7760255be9
13 lines
440 B
Perl
13 lines
440 B
Perl
use Test::More qw(no_plan);
|
|
use strict;
|
|
use lib 't';
|
|
use_ok('Test::Qpsmtpd');
|
|
|
|
ok(my ($smtpd, $conn) = Test::Qpsmtpd->new_conn(), "get new connection");
|
|
is(($smtpd->command('HELO localhost'))[0], 250, 'HELO localhost');
|
|
is(($smtpd->command('EHLO localhost'))[0], 503, 'EHLO localhost (duplicate!)');
|
|
|
|
ok(($smtpd, $conn) = Test::Qpsmtpd->new_conn(), "get new connection");
|
|
is(($smtpd->command('EHLO localhost'))[0], 250, 'EHLO localhost');
|
|
|