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
b9e417e6
Commit
b9e417e6
authored
Apr 10, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjusted tests
parent
1f93b15a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
lib/python/StructuredText/tests/testStructuredText.py
lib/python/StructuredText/tests/testStructuredText.py
+4
-14
No files found.
lib/python/StructuredText/tests/testStructuredText.py
View file @
b9e417e6
...
@@ -158,7 +158,6 @@ class BasicTests(unittest.TestCase):
...
@@ -158,7 +158,6 @@ class BasicTests(unittest.TestCase):
raise
AssertionError
,
(
"basic test failed for Unicode '%s'"
raise
AssertionError
,
(
"basic test failed for Unicode '%s'"
%
stxtxt
)
%
stxtxt
)
def
testUnderline
(
self
):
def
testUnderline
(
self
):
self
.
_test
(
"xx _this is html_ xx"
,
self
.
_test
(
"xx _this is html_ xx"
,
"xx <u>this is html</u> xx"
)
"xx <u>this is html</u> xx"
)
...
@@ -179,39 +178,30 @@ class BasicTests(unittest.TestCase):
...
@@ -179,39 +178,30 @@ class BasicTests(unittest.TestCase):
self
.
_test
(
'<a href="index_html">index_html</a>'
,
self
.
_test
(
'<a href="index_html">index_html</a>'
,
'<a href="index_html">index_html</a>'
)
'<a href="index_html">index_html</a>'
)
def
testUnderscoresInLiteral1
(
self
):
def
testUnderscoresInLiteral1
(
self
):
self
.
_test
(
"def __init__(self)"
,
self
.
_test
(
"def __init__(self)"
,
"def __init__(self)"
)
"def __init__(self)"
)
def
testUnderscoresInLiteral2
(
self
):
def
testUnderscoresInLiteral2
(
self
):
self
.
_test
(
"this is '__a_literal__' eh"
,
self
.
_test
(
"this is '__a_literal__' eh"
,
"<code>__a_literal__</code>"
)
"<code>__a_literal__</code>"
)
def
testUnderlinesWithoutWithspaces
(
self
):
def
testUnderlinesWithoutWithspaces
(
self
):
self
.
_test
(
"Zopes structured_text is sometimes a night_mare"
,
self
.
_test
(
"Zopes structured_text is sometimes a night_mare"
,
"Zopes structured_text is sometimes a night_mare"
)
"Zopes structured_text is sometimes a night_mare"
)
def
testAsterisksInLiteral
(
self
):
def
testAsterisksInLiteral
(
self
):
self
.
_test
(
"this is a '*literal*' eh"
,
self
.
_test
(
"this is a '*literal*' eh"
,
"<code>*literal*</code>"
)
"<code>*literal*</code>"
)
def
testDoubleAsterisksInLiteral
(
self
):
def
testDoubleAsterisksInLiteral
(
self
):
self
.
_test
(
"this is a '**literal**' eh"
,
self
.
_test
(
"this is a '**literal**' eh"
,
"<code>**literal**</code>"
)
"<code>**literal**</code>"
)
def
testLinkInLiteral
(
self
):
def
testLinkInLiteral
(
self
):
self
.
_test
(
"this is a '
\
"
literal
\
"
:http://www.zope.org/.' eh"
,
self
.
_test
(
"this is a '
\
"
literal
\
"
:http://www.zope.org/.' eh"
,
'<code>"literal":http://www.zope.org/.</code>'
)
'<code>"literal":http://www.zope.org/.</code>'
)
def
testLink
(
self
):
def
testLink
(
self
):
self
.
_test
(
'"foo":http://www.zope.org/foo/bar'
,
self
.
_test
(
'"foo":http://www.zope.org/foo/bar'
,
'<p><a href="http://www.zope.org/foo/bar">foo</a></p>'
)
'<p><a href="http://www.zope.org/foo/bar">foo</a></p>'
)
...
@@ -224,16 +214,16 @@ class BasicTests(unittest.TestCase):
...
@@ -224,16 +214,16 @@ class BasicTests(unittest.TestCase):
def
testImgLink
(
self
):
def
testImgLink
(
self
):
self
.
_test
(
'"foo":img:http://www.zope.org/bar.gif'
,
self
.
_test
(
'"foo":img:http://www.zope.org/bar.gif'
,
'<img src="http://www.zope.org/bar.gif" alt="foo">'
)
'<img src="http://www.zope.org/bar.gif" alt="foo"
/
>'
)
self
.
_test
(
'"foo":img:http://www.zope.org:8080/bar.gif'
,
self
.
_test
(
'"foo":img:http://www.zope.org:8080/bar.gif'
,
'<img src="http://www.zope.org:8080/bar.gif" alt="foo">'
)
'<img src="http://www.zope.org:8080/bar.gif" alt="foo"
/
>'
)
self
.
_test
(
'"foo":img:http://www.zope.org:8080/foo/bar?arg=1'
,
self
.
_test
(
'"foo":img:http://www.zope.org:8080/foo/bar?arg=1'
,
'<img src="http://www.zope.org:8080/foo/bar?arg=1" alt="foo">'
)
'<img src="http://www.zope.org:8080/foo/bar?arg=1" alt="foo"
/
>'
)
self
.
_test
(
'"foo":img:http://www.zope.org:8080/foo/b%20ar?arg=1'
,
self
.
_test
(
'"foo":img:http://www.zope.org:8080/foo/b%20ar?arg=1'
,
'<img src="http://www.zope.org:8080/foo/b%20ar?arg=1" alt="foo">'
)
'<img src="http://www.zope.org:8080/foo/b%20ar?arg=1" alt="foo"
/
>'
)
def
XXXtestUnicodeContent
(
self
):
def
XXXtestUnicodeContent
(
self
):
...
...
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