~ubuntu-branches/ubuntu/edgy/libapache2-mod-perl2/edgy

« back to all changes in this revision

Viewing changes to t/apache/cgihandler.t

  • Committer: Bazaar Package Importer
  • Author(s): Andres Salomon
  • Date: 2005-08-12 01:40:38 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050812014038-gjigefs55pqx4qc8
Tags: 2.0.1-3
Grr.  Really include perl.conf file; it got lost due to diff not
wanting to add an empty file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
use warnings FATAL => 'all';
3
3
 
4
4
use Apache::Test;
 
5
use Apache::TestUtil;
5
6
use Apache::TestRequest;
6
7
 
7
8
plan tests => 2;
8
9
 
9
10
my $location = "/TestApache__cgihandler";
10
 
my $str;
11
 
 
12
 
my $data = "1..3\nok 1\nok 2\nok 3\n";
13
 
 
14
 
$str = POST_BODY $location, content => $data;
15
 
 
16
 
ok $str eq $data;
17
 
 
18
 
$str = GET_BODY $location;
19
 
 
20
 
ok $str eq $data;
 
11
 
 
12
my $expected = "1..3\nok 1\nok 2\nok 3\n";
 
13
 
 
14
my $received = POST_BODY $location, content => $expected;
 
15
 
 
16
ok t_cmp $received, $expected, "POST cgihandler";
 
17
 
 
18
$received = GET_BODY $location;
 
19
 
 
20
ok t_cmp $received, $expected, "GET cgihandler";