#!/usr/bin/env perl use strict; use warnings; use Test::More tests => 4; use FindBin; use lib "$FindBin::Bin/../perllib"; use lib "$FindBin::Bin/../commonlib/perllib"; use_ok( 'Open311' ); my $o = Open311->new(); ok $o, 'created object'; my $err_text = <400Service Code cannot be null -- can't proceed with the request. EOT ; is $o->_process_error( $err_text ), "400: Service Code cannot be null -- can't proceed with the request.\n", 'error text parsing'; is $o->_process_error( '503 - service unavailable' ), 'unknown error', 'error text parsing of bad error';