6 if (system("python -c 'import docutils.core'") != 0) {
7 eval 'use Test::More skip_all => "docutils not available"';
11 use Test::More tests => 2;
13 BEGIN { use_ok("IkiWiki"); }
15 %config=IkiWiki::defaultconfig();
16 $config{srcdir}=$config{destdir}="/dev/null";
18 $config{add_plugins}=[qw(rst)];
19 IkiWiki::loadplugins();
20 IkiWiki::checkconfig();
22 ok(IkiWiki::htmlize("foo", "foo", "rst", "foo\n") =~ m{\s*<p>foo</p>\s*});