Commit b9e417e6 authored by Andreas Jung's avatar Andreas Jung

adjusted tests

parent 1f93b15a
...@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment