/[Search-Estraier]/trunk/t/5_Node.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/5_Node.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32 by dpavlin, Thu Jan 5 15:38:34 2006 UTC revision 35 by dpavlin, Thu Jan 5 21:51:29 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 10;  use Test::More tests => 11;
7  use Test::Exception;  use Test::Exception;
8  use Data::Dumper;  use Data::Dumper;
9    
10  BEGIN { use_ok('Search::Estraier') };  BEGIN { use_ok('Search::Estraier') };
11    
12    # name of node for test
13    my $test_node = 'Search-Estraier';
14    
15  ok(my $node = new Search::Estraier::Node, 'new');  ok(my $node = new Search::Estraier::Node, 'new');
16  isa_ok($node, 'Search::Estraier::Node');  isa_ok($node, 'Search::Estraier::Node');
17    
# Line 23  throws_ok {$node->set_timeout('foo') } q Line 26  throws_ok {$node->set_timeout('foo') } q
26  ok($node->set_auth('foo','bar'), 'set_auth');  ok($node->set_auth('foo','bar'), 'set_auth');
27    
28  cmp_ok($node->status, '==', -1, 'status');  cmp_ok($node->status, '==', -1, 'status');
29    
30    my $nodelist;
31    cmp_ok($node->shuttle_url( '?action=nodelist', 'text/plain', undef, \$nodelist),
32            '==', 200, 'nodelist');
33    
34    my $draft = <<'_END_OF_DRAFT_';
35    @uri=data001
36    @title=Material Girl
37    
38    Living in a material world
39    And I am a material girl
40    You know that we are living in a material world
41    And I am a material girl
42    _END_OF_DRAFT_
43    
44    diag "draft:\n$draft";

Legend:
Removed from v.32  
changed lines
  Added in v.35

  ViewVC Help
Powered by ViewVC 1.1.26