Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
b55c9294
Commit
b55c9294
authored
Jul 09, 2006
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dedicated tests for 'file' and 'url options
parent
d7b1be4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
lib/python/reStructuredText/tests/testReST.py
lib/python/reStructuredText/tests/testReST.py
+10
-5
No files found.
lib/python/reStructuredText/tests/testReST.py
View file @
b55c9294
...
...
@@ -86,12 +86,17 @@ text
source
=
'hello world
\
n
.. include:: /etc/passwd'
self
.
assertRaises
(
NotImplementedError
,
HTML
,
source
)
# disabled test so far until we have a consensus how to deal with 'raw'
# def testRawPassthrough(self):
#
# source = '.. raw:: html\n\n <h1>HELLO WORLD</h1>'
# self.assertRaises(NotImplementedError, HTML, source)
def
testRawPassthrough
(
self
):
source
=
'.. raw:: html
\
n
<h1>HELLO WORLD</h1>'
result
=
HTML
(
source
)
# don't raise
source
=
'.. raw:: html
\
n
:file: inclusion.txt'
self
.
assertRaises
(
NotImplementedError
,
HTML
,
source
)
source
=
'.. raw:: html
\
n
:url: http://www.zope.org'
self
.
assertRaises
(
NotImplementedError
,
HTML
,
source
)
def
test_suite
():
from
unittest
import
TestSuite
,
makeSuite
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment