]> git.donarmstrong.com Git - debbugs.git/blobdiff - t/07_bugreport.t
handle receips state properly; check for unescaped output in mbox
[debbugs.git] / t / 07_bugreport.t
index 0366be41b9c5b72a5229c94f0aafe4a0bb01480e..3600e1ca7a35684e6b4120399bb4895d508b225d 100644 (file)
@@ -1,7 +1,7 @@
 # -*- mode: cperl;-*-
 
 
-use Test::More tests => 6;
+use Test::More tests => 8;
 
 use warnings;
 use strict;
@@ -84,6 +84,13 @@ ok($mech->content() =~ qr/Subject: Submitting a bug/i,
 ok($mech->content() =~ qr/^From /m,
    'Starts with a From appropriately');
 
+$mech->get_ok('http://localhost:'.$port.'/?bug=1;mboxmaint=yes',
+              'Page received ok');
+print STDERR $mech->content();
+ok($mech->content() !~ qr/[\x01\x02\x03\x05\x06\x07]/i,
+   'No unescaped states');
+
+
 
 # Other tests for bugs in the page should be added here eventually