Author: tiran
Date: Fri Sep 17 17:21:55 2004
New Revision: 3050
Modified:
PortalTransforms/trunk/tests/output/rest1.html
PortalTransforms/trunk/tests/output/rest1.out
PortalTransforms/trunk/tests/output/rest2.out
PortalTransforms/trunk/tests/output/rest3.out
PortalTransforms/trunk/tests/output/test_lynx.txt
PortalTransforms/trunk/tests/output/test_python.out
PortalTransforms/trunk/tests/test_transforms.py
Log:
fixed unit tests
Modified: PortalTransforms/trunk/tests/output/rest1.html
==============================================================================
--- PortalTransforms/trunk/tests/output/rest1.html (original)
+++ PortalTransforms/trunk/tests/output/rest1.html Fri Sep 17 17:21:55 2004
@@ -1 +1 @@
-This is a test of the *reST* transform<br/>o one<br/>o two<br/>o three
\ No newline at end of file
+<p>This is a test of the *reST* transform<br />o one<br />o two<br />o
three</p>
\ No newline at end of file
Modified: PortalTransforms/trunk/tests/output/rest1.out
==============================================================================
--- PortalTransforms/trunk/tests/output/rest1.out (original)
+++ PortalTransforms/trunk/tests/output/rest1.out Fri Sep 17 17:21:55 2004
@@ -1,10 +1,10 @@
<div>
- <dl>
- <dt>This is a test of the <em>reST</em> transform</dt>
- <dd>o one
- o two
- o three
- </dd>
- </dl>
+<dl>
+<dt>This is a test of the <em>reST</em> transform</dt>
+<dd>o one
+o two
+o three</dd>
+</dl>
+
</div>
Modified: PortalTransforms/trunk/tests/output/rest2.out
==============================================================================
--- PortalTransforms/trunk/tests/output/rest2.out (original)
+++ PortalTransforms/trunk/tests/output/rest2.out Fri Sep 17 17:21:55 2004
@@ -1,13 +1,9 @@
+<h2 class="title">Heading 1</h2>
<div id="heading-1">
- <h3 class="title">Heading 1</h3>
+<p>Some text.</p>
+<div class="section" id="heading-2">
+<h3><a name="heading-2">Heading 2</a></h3>
+<p>Some text, bla ble bli blo blu. Yes, i know this is <a class="reference"
href="http://www.example.com">Stupid</a>.</p>
- <p>Some text.</p>
-
- <div class="section" id="heading-2">
- <h3><a name="heading-2">Heading 2</a></h3>
-
- <p>Some text, bla ble bli blo blu. Yes, i know this is <a
class="reference" href="http://www.example.com">Stupid</a>.</p>
-
- </div>
</div>
-
+</div>
\ No newline at end of file
Modified: PortalTransforms/trunk/tests/output/rest3.out
==============================================================================
--- PortalTransforms/trunk/tests/output/rest3.out (original)
+++ PortalTransforms/trunk/tests/output/rest3.out Fri Sep 17 17:21:55 2004
@@ -1,21 +1,13 @@
+<h2 class="title">Title</h2>
<div id="title">
- <h3 class="title">Title</h3>
-
- <h4 class="subtitle" id="subtitle">Subtitle</h4>
-
- <p>This is a test document to make sure subtitle gets the right
-heading.</p>
-
- <div class="section" id="now-the-real-heading">
- <h3><a name="now-the-real-heading">Now the real heading</a></h3>
-
- <p>The brown fox jumped over the lazy dog.</p>
-
- <div class="section" id="with-a-subheading">
- <h4><a name="with-a-subheading">With a subheading</a></h4>
-
- <p>Some text, bla ble bli blo blu. Yes, i know this is <a
-class="reference" href="http://www.example.com">Stupid</a>.</p>
- </div>
- </div>
+<p>This is a test document to make sure subtitle gets the right heading.</p>
+<div class="section" id="now-the-real-heading">
+<h3><a name="now-the-real-heading">Now the real heading</a></h3>
+<p>The brown fox jumped over the lazy dog.</p>
+
+<div class="section" id="with-a-subheading">
+<h4><a name="with-a-subheading">With a subheading</a></h4>
+<p>Some text, bla ble bli blo blu. Yes, i know this is <a class="reference"
href="http://www.example.com">Stupid</a>.</p>
+</div>
</div>
+</div>
\ No newline at end of file
Modified: PortalTransforms/trunk/tests/output/test_lynx.txt
==============================================================================
--- PortalTransforms/trunk/tests/output/test_lynx.txt (original)
+++ PortalTransforms/trunk/tests/output/test_lynx.txt Fri Sep 17 17:21:55 2004
@@ -1,10 +1,9 @@
-
Copying Docutils
Author: David Goodger
- Contact: [1]goodger@xxxxxxxxxxxxxxxxxxxxx
+ Contact: goodger@xxxxxxxxxxxxxxxxxxxxx
Date: 2002-10-03
- Web site: [2]http://docutils.sourceforge.net/
+ Web site: http://docutils.sourceforge.net/
Most of the files included in this project are in the public domain,
and therefore have no license requirement and no restrictions on
@@ -13,34 +12,22 @@
BSD-style license (which can be found in the module's source
code).
* docutils/roman.py, copyright by Mark Pilgrim, released under the
- [3]Python 2.1.1 license.
+ Python 2.1.1 license.
* test/difflib.py, copyright by the Python Software Foundation,
- released under the [4]Python 2.2 license. This file is included
- for compatibility with Python versions less than 2.2; if you have
+ released under the Python 2.2 license. This file is included for
+ compatibility with Python versions less than 2.2; if you have
Python 2.2 or higher, difflib.py is not needed and may be removed.
(It's only used to report test failures anyhow; it isn't installed
anywhere. The included file is a pre-generator version of the
difflib.py module included in Python 2.2.)
(Disclaimer: I am not a lawyer.) Both the BSD license and the Python
- license are [5]OSI-approved and [6]GPL-compatible. Although
- complicated by multiple owners and lots of legalese, the Python
- license basically lets you copy, use, modify, and redistribute files
- as long as you keep the copyright attribution intact, note any changes
- you make, and don't use the owner's name in vain. The BSD license is
- similar.
+ license are OSI-approved and GPL-compatible. Although complicated by
+ multiple owners and lots of legalese, the Python license basically
+ lets you copy, use, modify, and redistribute files as long as you keep
+ the copyright attribution intact, note any changes you make, and don't
+ use the owner's name in vain. The BSD license is similar.
_________________________________________________________________
- Generated on: 2003-04-19 15:32 UTC. Generated by [7]Docutils from
- [8]reStructuredText source.
-
-References
-
- 1. mailto:goodger@xxxxxxxxxxxxxxxxxxxxx
- 2. http://docutils.sourceforge.net/
- 3. http://www.python.org/2.1.1/license.html
- 4. http://www.python.org/2.2/license.html
- 5. http://opensource.org/licenses/
- 6. http://www.gnu.org/philosophy/license-list.html
- 7. http://docutils.sourceforge.net/
- 8. http://docutils.sourceforge.net/rst.html
+ Generated on: 2003-04-19 15:32 UTC. Generated by Docutils from
+ reStructuredText source.
Modified: PortalTransforms/trunk/tests/output/test_python.out
==============================================================================
--- PortalTransforms/trunk/tests/output/test_python.out (original)
+++ PortalTransforms/trunk/tests/output/test_python.out Fri Sep 17 17:21:55 2004
@@ -1,10 +1,11 @@
<pre class="python">
-<font color="#004080">""" nice docstring """</font>
+<span style="color: #004080;">""" nice docstring """</span>
-<font color="#C00000">class</font> <font color="#000000">A</font> <font
color="#0000C0">:</font> <font color="#C00000">pass</font>
+<span style="color: #C00000;">class</span> <span style="color:
#000000;">A</span> <span style="color: #0000C0;">:</span> <span style="color:
#C00000;">pass</span>
-<font color="#008000"># comment
-</font>
-<font color="#C00000">def</font> <font color="#000000">inc</font><font
color="#0000C0">(</font><font color="#000000">i</font><font
color="#0000C0">)</font><font color="#0000C0">:</font>
- <font color="#C00000">return</font> <font color="#000000">i</font><font
color="#0000C0">+</font><font color="#0080C0">1</font>
+<span style="color: #008000;"># comment
+</span>
+<span style="color: #C00000;">def</span> <span style="color:
#000000;">inc</span><span style="color: #0000C0;">(</span><span style="color:
#000000;">i</span><span style="color: #0000C0;">)</span><span style="color:
#0000C0;">:</span>
+
+ <span style="color: #C00000;">return</span> <span style="color:
#000000;">i</span><span style="color: #0000C0;">+</span><span style="color:
#0080C0;">1</span>
</pre>
Modified: PortalTransforms/trunk/tests/test_transforms.py
==============================================================================
--- PortalTransforms/trunk/tests/test_transforms.py (original)
+++ PortalTransforms/trunk/tests/test_transforms.py Fri Sep 17 17:21:55 2004
@@ -45,6 +45,7 @@
expected = self.normalize(expected)
got = self.normalize(got)
output.close()
+ #import pdb; pdb.set_trace()
self.assertEquals(got, expected,
'[%s]\n\n!=\n\n[%s]\n\nIN %s(%s)' % (
@@ -64,7 +65,7 @@
TRANSFORMS_TESTINFO = (
('Products.PortalTransforms.transforms.pdf_to_html',
- "demo1.pdf", "demo1.html", normalize_html, 5
+ "demo1.pdf", "demo1.html", None, 0
),
('Products.PortalTransforms.transforms.word_to_html',
"test.doc", "test_word.html", normalize_html, 0
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
|