summaryrefslogtreecommitdiffstats
path: root/tests/test_compile_markdown.py
diff options
context:
space:
mode:
authorLibravatarDererk <dererk@satellogic.com>2016-11-15 14:18:46 -0300
committerLibravatarDererk <dererk@satellogic.com>2016-11-15 14:18:46 -0300
commitffb671c61a24a9086343b54bad080e145ff33fc5 (patch)
tree2c5291f7a34edf4afdc8e07887a148291bfa3fa1 /tests/test_compile_markdown.py
parent4e3224c012df9f74f010eb92203520515e8537b9 (diff)
New upstream version 7.8.1upstream/7.8.1
Diffstat (limited to 'tests/test_compile_markdown.py')
-rw-r--r--tests/test_compile_markdown.py49
1 files changed, 3 insertions, 46 deletions
diff --git a/tests/test_compile_markdown.py b/tests/test_compile_markdown.py
index 2275b04..99f44fd 100644
--- a/tests/test_compile_markdown.py
+++ b/tests/test_compile_markdown.py
@@ -52,7 +52,7 @@ class CompileMarkdownTests(BaseTestCase):
expected_output = '''\
<table class="codehilitetable"><tr><td class="linenos">\
<div class="linenodiv"><pre>1</pre></div>\
-</td><td class="code"><pre class="code literal-block">\
+</td><td class="code"><pre class="code literal-block"><span></span>\
<span class="kn">from</span> <span class="nn">this</span>
</pre>
</td></tr></table>
@@ -62,54 +62,11 @@ class CompileMarkdownTests(BaseTestCase):
self.assertEquals(actual_output.strip(), expected_output.strip())
def test_compile_strikethrough(self):
- input_str = '~~strik text~~'
- expected_output = '<p><del>strik text</del></p>'
+ input_str = '~~striked out text~~'
+ expected_output = '<p><del>striked out text</del></p>'
actual_output = self.compile(input_str)
self.assertEquals(actual_output.strip(), expected_output.strip())
- def test_compile_html_gist(self):
- input_str = '''\
-Here's a gist file inline:
-[:gist: 4747847 zen.py]
-
-Cool, eh?
-'''
- expected_output = '''\
-<p>Here's a gist file inline:
-<div class="gist">
-<script src="https://gist.github.com/4747847.js?file=zen.py"></script>
-<noscript>
-<pre>import this</pre>
-</noscript>
-</div>
-</p>
-<p>Cool, eh?</p>
-'''
- actual_output = self.compile(input_str)
- self.assertEquals(actual_output.strip(), expected_output.strip())
-
- def test_compile_html_gist_2(self):
- input_str = '''\
-Here's a gist file inline, using reStructuredText syntax:
-..gist:: 4747847 zen.py
-
-Cool, eh?
-'''
- expected_output = '''\
-<p>Here's a gist file inline, using reStructuredText syntax:
-<div class="gist">
-<script src="https://gist.github.com/4747847.js?file=zen.py"></script>
-<noscript>
-<pre>import this</pre>
-</noscript>
-</div>
-</p>
-<p>Cool, eh?</p>
-'''
- actual_output = self.compile(input_str)
- self.assertEquals(actual_output.strip(), expected_output.strip())
-
-
if __name__ == '__main__':
unittest.main()