summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_apis.py72
-rw-r--r--tests/test_extensions.py20
-rw-r--r--tests/test_legacy.py26
-rw-r--r--tests/test_syntax/blocks/test_html_blocks.py2
-rw-r--r--tests/test_syntax/extensions/test_attr_list.py2
-rw-r--r--tests/test_syntax/extensions/test_code_hilite.py18
-rw-r--r--tests/test_syntax/extensions/test_fenced_code.py6
-rw-r--r--tests/test_syntax/extensions/test_footnotes.py4
-rw-r--r--tests/test_syntax/extensions/test_md_in_html.py4
-rw-r--r--tests/test_syntax/extensions/test_tables.py2
10 files changed, 74 insertions, 82 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py
index 1a38be6..82bc3b8 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -21,7 +21,7 @@ License: BSD (see LICENSE.md for details).
Python-Markdown Regression Tests
================================
-Tests of the various APIs with the python markdown lib.
+Tests of the various APIs with the Python Markdown library.
"""
import unittest
@@ -122,7 +122,7 @@ class TestBlockParser(unittest.TestCase):
self.parser = markdown.Markdown().parser
def testParseChunk(self):
- """ Test BlockParser.parseChunk. """
+ """ Test `BlockParser.parseChunk`. """
root = etree.Element("div")
text = 'foo'
self.parser.parseChunk(root, text)
@@ -132,7 +132,7 @@ class TestBlockParser(unittest.TestCase):
)
def testParseDocument(self):
- """ Test BlockParser.parseDocument. """
+ """ Test `BlockParser.parseDocument`. """
lines = ['#foo', '', 'bar', '', ' baz']
tree = self.parser.parseDocument(lines)
self.assertIsInstance(tree, etree.ElementTree)
@@ -144,7 +144,7 @@ class TestBlockParser(unittest.TestCase):
class TestBlockParserState(unittest.TestCase):
- """ Tests of the State class for BlockParser. """
+ """ Tests of the State class for `BlockParser`. """
def setUp(self):
self.state = markdown.blockparser.State()
@@ -161,7 +161,7 @@ class TestBlockParserState(unittest.TestCase):
self.assertEqual(self.state, ['a_state', 'state2'])
def testIsSate(self):
- """ Test State.isstate(). """
+ """ Test `State.isstate()`. """
self.assertEqual(self.state.isstate('anything'), False)
self.state.set('a_state')
self.assertEqual(self.state.isstate('a_state'), True)
@@ -171,7 +171,7 @@ class TestBlockParserState(unittest.TestCase):
self.assertEqual(self.state.isstate('missing'), False)
def testReset(self):
- """ Test State.reset(). """
+ """ Test `State.reset()`. """
self.state.set('a_state')
self.state.reset()
self.assertEqual(self.state, [])
@@ -182,20 +182,20 @@ class TestBlockParserState(unittest.TestCase):
class TestHtmlStash(unittest.TestCase):
- """ Test Markdown's HtmlStash. """
+ """ Test Markdown's `HtmlStash`. """
def setUp(self):
self.stash = markdown.util.HtmlStash()
self.placeholder = self.stash.store('foo')
def testSimpleStore(self):
- """ Test HtmlStash.store. """
+ """ Test `HtmlStash.store`. """
self.assertEqual(self.placeholder, self.stash.get_placeholder(0))
self.assertEqual(self.stash.html_counter, 1)
self.assertEqual(self.stash.rawHtmlBlocks, ['foo'])
def testStoreMore(self):
- """ Test HtmlStash.store with additional blocks. """
+ """ Test `HtmlStash.store` with additional blocks. """
placeholder = self.stash.store('bar')
self.assertEqual(placeholder, self.stash.get_placeholder(1))
self.assertEqual(self.stash.html_counter, 2)
@@ -205,14 +205,14 @@ class TestHtmlStash(unittest.TestCase):
)
def testReset(self):
- """ Test HtmlStash.reset. """
+ """ Test `HtmlStash.reset`. """
self.stash.reset()
self.assertEqual(self.stash.html_counter, 0)
self.assertEqual(self.stash.rawHtmlBlocks, [])
class Item:
- """ A dummy Registry item object for testing. """
+ """ A dummy `Registry` item object for testing. """
def __init__(self, data):
self.data = data
@@ -272,11 +272,11 @@ class RegistryTests(unittest.TestCase):
self.assertEqual(len(r), 2)
r.deregister('c', strict=False)
self.assertEqual(len(r), 1)
- # deregister non-existent item with strict=False
+ # deregister non-existent item with `strict=False`
r.deregister('d', strict=False)
self.assertEqual(len(r), 1)
with self.assertRaises(ValueError):
- # deregister non-existent item with strict=True
+ # deregister non-existent item with `strict=True`
r.deregister('e')
self.assertEqual(list(r), ['a'])
@@ -396,7 +396,7 @@ class TestErrors(unittest.TestCase):
)
def testBaseExtention(self):
- """ Test that the base Extension class will raise NotImplemented. """
+ """ Test that the base Extension class will raise `NotImplemented`. """
self.assertRaises(
NotImplementedError,
markdown.Markdown, extensions=[markdown.extensions.Extension()]
@@ -405,11 +405,11 @@ class TestErrors(unittest.TestCase):
class testETreeComments(unittest.TestCase):
"""
- Test that ElementTree Comments work.
+ Test that `ElementTree` Comments work.
- These tests should only be a concern when using cElementTree with third
+ These tests should only be a concern when using `cElementTree` with third
party serializers (including markdown's (x)html serializer). While markdown
- doesn't use ElementTree.Comment itself, we should certainly support any
+ doesn't use `ElementTree.Comment` itself, we should certainly support any
third party extensions which may. Therefore, these tests are included to
ensure such support is maintained.
"""
@@ -419,23 +419,23 @@ class testETreeComments(unittest.TestCase):
self.comment = etree.Comment('foo')
def testCommentIsComment(self):
- """ Test that an ElementTree Comment passes the `is Comment` test. """
+ """ Test that an `ElementTree` `Comment` passes the `is Comment` test. """
self.assertIs(self.comment.tag, etree.Comment)
def testCommentIsBlockLevel(self):
- """ Test that an ElementTree Comment is recognized as BlockLevel. """
+ """ Test that an `ElementTree` `Comment` is recognized as `BlockLevel`. """
md = markdown.Markdown()
self.assertIs(md.is_block_level(self.comment.tag), False)
def testCommentSerialization(self):
- """ Test that an ElementTree Comment serializes properly. """
+ """ Test that an `ElementTree` `Comment` serializes properly. """
self.assertEqual(
markdown.serializers.to_html_string(self.comment),
'<!--foo-->'
)
def testCommentPrettify(self):
- """ Test that an ElementTree Comment is prettified properly. """
+ """ Test that an `ElementTree` `Comment` is prettified properly. """
pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown())
pretty.run(self.comment)
self.assertEqual(
@@ -450,7 +450,7 @@ class testElementTailTests(unittest.TestCase):
self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown())
def testBrTailNoNewline(self):
- """ Test that last <br> in tree has a new line tail """
+ """ Test that last `<br>` in tree has a new line tail """
root = etree.Element('root')
br = etree.SubElement(root, 'br')
self.assertEqual(br.tail, None)
@@ -459,7 +459,7 @@ class testElementTailTests(unittest.TestCase):
class testElementPreCodeTests(unittest.TestCase):
- """ Element PreCode Tests """
+ """ Element `PreCode` Tests """
def setUp(self):
md = markdown.Markdown()
self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(md)
@@ -557,7 +557,7 @@ class testSerializers(unittest.TestCase):
)
def testProsessingInstruction(self):
- """ Test serialization of ProcessignInstruction. """
+ """ Test serialization of `ProcessignInstruction`. """
pi = ProcessingInstruction('foo', text='<&"test\nescaping">')
self.assertIs(pi.tag, ProcessingInstruction)
self.assertEqual(
@@ -566,7 +566,7 @@ class testSerializers(unittest.TestCase):
)
def testQNameTag(self):
- """ Test serialization of QName tag. """
+ """ Test serialization of `QName` tag. """
div = etree.Element('div')
qname = etree.QName('http://www.w3.org/1998/Math/MathML', 'math')
math = etree.SubElement(div, qname)
@@ -595,7 +595,7 @@ class testSerializers(unittest.TestCase):
)
def testQNameAttribute(self):
- """ Test serialization of QName attribute. """
+ """ Test serialization of `QName` attribute. """
div = etree.Element('div')
div.set(etree.QName('foo'), etree.QName('bar'))
self.assertEqual(
@@ -604,13 +604,13 @@ class testSerializers(unittest.TestCase):
)
def testBadQNameTag(self):
- """ Test serialization of QName with no tag. """
+ """ Test serialization of `QName` with no tag. """
qname = etree.QName('http://www.w3.org/1998/Math/MathML')
el = etree.Element(qname)
self.assertRaises(ValueError, markdown.serializers.to_xhtml_string, el)
def testQNameEscaping(self):
- """ Test QName escaping. """
+ """ Test `QName` escaping. """
qname = etree.QName('<&"test\nescaping">', 'div')
el = etree.Element(qname)
self.assertEqual(
@@ -619,7 +619,7 @@ class testSerializers(unittest.TestCase):
)
def testQNamePreEscaping(self):
- """ Test QName that is already partially escaped. """
+ """ Test `QName` that is already partially escaped. """
qname = etree.QName('&lt;&amp;"test&#10;escaping"&gt;', 'div')
el = etree.Element(qname)
self.assertEqual(
@@ -628,9 +628,9 @@ class testSerializers(unittest.TestCase):
)
def buildExtension(self):
- """ Build an extension which registers fakeSerializer. """
+ """ Build an extension which registers `fakeSerializer`. """
def fakeSerializer(elem):
- # Ignore input and return hardcoded output
+ # Ignore input and return hard-coded output
return '<div><p>foo</p></div>'
class registerFakeSerializer(markdown.extensions.Extension):
@@ -661,7 +661,7 @@ class testSerializers(unittest.TestCase):
class testAtomicString(unittest.TestCase):
- """ Test that AtomicStrings are honored (not parsed). """
+ """ Test that `AtomicStrings` are honored (not parsed). """
def setUp(self):
md = markdown.Markdown()
@@ -679,7 +679,7 @@ class testAtomicString(unittest.TestCase):
)
def testSimpleAtomicString(self):
- """ Test that a simple AtomicString is not parsed. """
+ """ Test that a simple `AtomicString` is not parsed. """
tree = etree.Element('div')
p = etree.SubElement(tree, 'p')
p.text = markdown.util.AtomicString('some *text*')
@@ -690,7 +690,7 @@ class testAtomicString(unittest.TestCase):
)
def testNestedAtomicString(self):
- """ Test that a nested AtomicString is not parsed. """
+ """ Test that a nested `AtomicString` is not parsed. """
tree = etree.Element('div')
p = etree.SubElement(tree, 'p')
p.text = markdown.util.AtomicString('*some* ')
@@ -815,7 +815,7 @@ class TestCliOptionParsing(unittest.TestCase):
self.assertEqual(options, self.default_options)
def create_config_file(self, config):
- """ Helper to create temp config files. """
+ """ Helper to create temporary configuration files. """
if not isinstance(config, str):
# convert to string
config = yaml.dump(config)
@@ -894,7 +894,7 @@ class TestEscapeAppend(unittest.TestCase):
class TestBlockAppend(unittest.TestCase):
- """ Tests block kHTML append. """
+ """ Tests block `kHTML` append. """
def testBlockAppend(self):
""" Test that appended escapes are only in the current instance. """
diff --git a/tests/test_extensions.py b/tests/test_extensions.py
index b19d10a..ad985c3 100644
--- a/tests/test_extensions.py
+++ b/tests/test_extensions.py
@@ -22,7 +22,7 @@ Python-Markdown Extension Regression Tests
==========================================
A collection of regression tests to confirm that the included extensions
-continue to work as advertised. This used to be accomplished by doctests.
+continue to work as advertised. This used to be accomplished by `doctests`.
"""
import unittest
@@ -77,7 +77,7 @@ class TestExtensionClass(unittest.TestCase):
self.assertEqual(self.ext.getConfigs(), {'foo': 'baz', 'bar': 'baz'})
def testSetConfigWithBadKey(self):
- # self.ext.setConfig('bad', 'baz) ==> KeyError
+ # `self.ext.setConfig('bad', 'baz)` => `KeyError`
self.assertRaises(KeyError, self.ext.setConfig, 'bad', 'baz')
def testConfigAsKwargsOnInit(self):
@@ -115,7 +115,7 @@ class TestAbbr(unittest.TestCase):
class TestMetaData(unittest.TestCase):
- """ Test MetaData extension. """
+ """ Test `MetaData` extension. """
def setUp(self):
self.md = markdown.Markdown(extensions=['meta'])
@@ -196,14 +196,14 @@ The body. This is paragraph one.'''
class TestWikiLinks(unittest.TestCase):
- """ Test Wikilinks Extension. """
+ """ Test `Wikilinks` Extension. """
def setUp(self):
self.md = markdown.Markdown(extensions=['wikilinks'])
self.text = "Some text with a [[WikiLink]]."
def testBasicWikilinks(self):
- """ Test [[wikilinks]]. """
+ """ Test `[[wikilinks]]`. """
self.assertEqual(
self.md.convert(self.text),
@@ -212,7 +212,7 @@ class TestWikiLinks(unittest.TestCase):
)
def testWikilinkWhitespace(self):
- """ Test whitespace in wikilinks. """
+ """ Test whitespace in `wikilinks`. """
self.assertEqual(
self.md.convert('[[ foo bar_baz ]]'),
'<p><a class="wikilink" href="/foo_bar_baz/">foo bar_baz</a></p>'
@@ -257,7 +257,7 @@ class TestWikiLinks(unittest.TestCase):
)
def testWikilinksMetaData(self):
- """ test MetaData with Wikilinks Extension. """
+ """ test `MetaData` with `Wikilinks` Extension. """
text = """wiki_base_url: http://example.com/
wiki_end_url: .html
@@ -271,7 +271,7 @@ Some text with a [[WikiLink]]."""
'<a href="http://example.com/WikiLink.html">WikiLink</a>.</p>'
)
- # MetaData should not carry over to next document:
+ # `MetaData` should not carry over to next document:
self.assertEqual(
md.convert("No [[MetaData]] here."),
'<p>No <a class="wikilink" href="/MetaData/">MetaData</a> '
@@ -548,7 +548,7 @@ class TestTOC(TestCaseWithAssertStartsWith):
)
def testWithAttrList(self):
- """ Test TOC with attr_list Extension. """
+ """ Test TOC with `attr_list` Extension. """
md = markdown.Markdown(extensions=['toc', 'attr_list'])
text = ('# Header 1\n\n'
'## Header 2 { #foo }\n\n'
@@ -640,7 +640,7 @@ class TestSmarty(unittest.TestCase):
'ndash': '\u2013',
'mdash': '\u2014',
'ellipsis': '\u2026',
- 'left-single-quote': '&sbquo;', # sb is not a typo!
+ 'left-single-quote': '&sbquo;', # `sb` is not a typo!
'right-single-quote': '&lsquo;',
'left-double-quote': '&bdquo;',
'right-double-quote': '&ldquo;',
diff --git a/tests/test_legacy.py b/tests/test_legacy.py
index 7b2c09a..30b6c18 100644
--- a/tests/test_legacy.py
+++ b/tests/test_legacy.py
@@ -46,24 +46,24 @@ class TestPhp(LegacyTestCase):
Quotes in attributes: attributes get output in different order
- Inline HTML (Span): Backtick in raw HTML attribute TODO: fixme
+ Inline HTML (Span): Backtick in raw HTML attribute TODO: fix me
Backslash escapes: Weird whitespace issue in output
- Ins & del: Our behavior follows markdown.pl I think PHP is wrong here
+ `Ins` & `del`: Our behavior follows `markdown.pl`. I think PHP is wrong here
- Auto Links: TODO: fix raw HTML so is doesn't match <hr@example.com> as a <hr>.
+ Auto Links: TODO: fix raw HTML so is doesn't match <hr@example.com> as a `<hr>`.
- Empty List Item: We match markdown.pl here. Maybe someday we'll support this
+ Empty List Item: We match `markdown.pl` here. Maybe someday we'll support this
Headers: TODO: fix headers to not require blank line before
- Mixed OLs and ULs: We match markdown.pl here. I think PHP is wrong here
+ Mixed `OL`s and `UL`s: We match `markdown.pl` here. I think PHP is wrong here
Emphasis: We have various minor differences in combined & incorrect em markup.
Maybe fix a few of them - but most aren't too important
- Code block in a list item: We match markdown.pl - not sure how php gets that output??
+ Code block in a list item: We match `markdown.pl` - not sure how PHP gets that output??
PHP-Specific Bugs: Not sure what to make of the escaping stuff here.
Why is PHP not removing a backslash?
@@ -87,14 +87,6 @@ class TestPhp(LegacyTestCase):
]
-# class TestPhpExtra(LegacyTestCase):
-# location = os.path.join(parent_test_dir, 'php/extra')
-# normalize = True
-# input_ext = '.text'
-# output_ext = '.xhtml'
-# default_kwargs = Kwargs(extensions=['extra'])
-
-
class TestPl2004(LegacyTestCase):
location = os.path.join(parent_test_dir, 'pl/Tests_2004')
normalize = True
@@ -110,11 +102,11 @@ class TestPl2007(LegacyTestCase):
Code Blocks: some weird whitespace issue
- Links, reference style: weird issue with nested brackets TODO: fixme
+ Links, reference style: weird issue with nested brackets TODO: fix me
- Backslash escapes: backticks in raw html attributes TODO: fixme
+ Backslash escapes: backticks in raw html attributes TODO: fix me
- Code Spans: more backticks in raw html attributes TODO: fixme
+ Code Spans: more backticks in raw html attributes TODO: fix me
"""
location = os.path.join(parent_test_dir, 'pl/Tests_2007')
normalize = True
diff --git a/tests/test_syntax/blocks/test_html_blocks.py b/tests/test_syntax/blocks/test_html_blocks.py
index 9ec0668..8623b30 100644
--- a/tests/test_syntax/blocks/test_html_blocks.py
+++ b/tests/test_syntax/blocks/test_html_blocks.py
@@ -1611,7 +1611,7 @@ class TestHTMLBlocks(TestCase):
def test_placeholder_in_source(self):
# This should never occur, but third party extensions could create weird edge cases.
md = markdown.Markdown()
- # Ensure there is an htmlstash so relevant code (nested in `if replacements`) is run.
+ # Ensure there is an `htmlstash` so relevant code (nested in `if replacements`) is run.
md.htmlStash.store('foo')
# Run with a placeholder which is not in the stash
placeholder = md.htmlStash.get_placeholder(md.htmlStash.html_counter + 1)
diff --git a/tests/test_syntax/extensions/test_attr_list.py b/tests/test_syntax/extensions/test_attr_list.py
index 6baaafb..f6a4fe6 100644
--- a/tests/test_syntax/extensions/test_attr_list.py
+++ b/tests/test_syntax/extensions/test_attr_list.py
@@ -26,7 +26,7 @@ class TestAttrList(TestCase):
maxDiff = None
- # TODO: Move the rest of the attr_list tests here.
+ # TODO: Move the rest of the `attr_list` tests here.
def test_empty_list(self):
self.assertMarkdownRenders(
diff --git a/tests/test_syntax/extensions/test_code_hilite.py b/tests/test_syntax/extensions/test_code_hilite.py
index 09dd523..0a41c4f 100644
--- a/tests/test_syntax/extensions/test_code_hilite.py
+++ b/tests/test_syntax/extensions/test_code_hilite.py
@@ -29,9 +29,9 @@ try:
except ImportError:
has_pygments = False
-# The version required by the tests is the version specified and installed in the 'pygments' tox env.
-# In any environment where the PYGMENTS_VERSION environment variable is either not defined or doesn't
-# match the version of Pygments installed, all tests which rely in pygments will be skipped.
+# The version required by the tests is the version specified and installed in the `pygments` tox environment.
+# In any environment where the `PYGMENTS_VERSION` environment variable is either not defined or doesn't
+# match the version of Pygments installed, all tests which rely in Pygments will be skipped.
required_pygments_version = os.environ.get('PYGMENTS_VERSION', '')
@@ -54,7 +54,7 @@ class TestCodeHiliteClass(TestCase):
def test_codehilite_defaults(self):
if has_pygments:
- # Odd result as no lang given and a single comment is not enough for guessing.
+ # Odd result as no `lang` given and a single comment is not enough for guessing.
expected = (
'<div class="codehilite"><pre><span></span><code><span class="err"># A Code Comment</span>\n'
'</code></pre></div>'
@@ -98,7 +98,7 @@ class TestCodeHiliteClass(TestCase):
def test_codehilite_set_lang(self):
if has_pygments:
- # Note an extra `<span class="x">` is added to end of code block when lang explicitly set.
+ # Note an extra `<span class="x">` is added to end of code block when `lang` explicitly set.
# Compare with expected output for `test_guess_lang`. Not sure why this happens.
expected = (
'<div class="codehilite"><pre><span></span><code><span class="cp">&lt;?php</span> '
@@ -122,7 +122,7 @@ class TestCodeHiliteClass(TestCase):
'</code></pre></div>'
)
else:
- # Note that without pygments there is no way to check that the language name is bad.
+ # Note that without Pygments there is no way to check that the language name is bad.
expected = (
'<pre class="codehilite"><code class="language-unkown">'
'&lt;?php print(&quot;Hello World&quot;); ?&gt;\n'
@@ -273,7 +273,7 @@ class TestCodeHiliteClass(TestCase):
'</code></pre></div>'
)
else:
- # TODO: Implement linenostart for no-pygments. Will need to check what JS libs look for.
+ # TODO: Implement `linenostart` for no-Pygments. Will need to check what JavaScript libraries look for.
expected = (
'<pre class="codehilite"><code class="language-text linenums">plain text\n'
'</code></pre>'
@@ -374,7 +374,7 @@ class TestCodeHiliteExtension(TestCase):
def testBasicCodeHilite(self):
if has_pygments:
- # Odd result as no lang given and a single comment is not enough for guessing.
+ # Odd result as no `lang` given and a single comment is not enough for guessing.
expected = (
'<div class="codehilite"><pre><span></span><code><span class="err"># A Code Comment</span>\n'
'</code></pre></div>'
@@ -645,7 +645,7 @@ class TestCodeHiliteExtension(TestCase):
def testUnknownOption(self):
if has_pygments:
- # Odd result as no lang given and a single comment is not enough for guessing.
+ # Odd result as no `lang` given and a single comment is not enough for guessing.
expected = (
'<div class="codehilite"><pre><span></span><code><span class="err"># A Code Comment</span>\n'
'</code></pre></div>'
diff --git a/tests/test_syntax/extensions/test_fenced_code.py b/tests/test_syntax/extensions/test_fenced_code.py
index be3c215..e24a177 100644
--- a/tests/test_syntax/extensions/test_fenced_code.py
+++ b/tests/test_syntax/extensions/test_fenced_code.py
@@ -31,9 +31,9 @@ try:
except ImportError:
has_pygments = False
-# The version required by the tests is the version specified and installed in the 'pygments' tox env.
-# In any environment where the PYGMENTS_VERSION environment variable is either not defined or doesn't
-# match the version of Pygments installed, all tests which rely in pygments will be skipped.
+# The version required by the tests is the version specified and installed in the `pygments` tox environment.
+# In any environment where the `PYGMENTS_VERSION` environment variable is either not defined or doesn't
+# match the version of Pygments installed, all tests which rely in Pygments will be skipped.
required_pygments_version = os.environ.get('PYGMENTS_VERSION', '')
diff --git a/tests/test_syntax/extensions/test_footnotes.py b/tests/test_syntax/extensions/test_footnotes.py
index 9a6b32a..9fe786b 100644
--- a/tests/test_syntax/extensions/test_footnotes.py
+++ b/tests/test_syntax/extensions/test_footnotes.py
@@ -266,7 +266,7 @@ class TestFootnotes(TestCase):
)
def test_backlink_text(self):
- """Test backlink configuration."""
+ """Test back-link configuration."""
self.assertMarkdownRenders(
'paragraph[^1]\n\n[^1]: A Footnote',
@@ -302,7 +302,7 @@ class TestFootnotes(TestCase):
)
def test_backlink_title(self):
- """Test backlink title configuration without placeholder."""
+ """Test back-link title configuration without placeholder."""
self.assertMarkdownRenders(
'paragraph[^1]\n\n[^1]: A Footnote',
diff --git a/tests/test_syntax/extensions/test_md_in_html.py b/tests/test_syntax/extensions/test_md_in_html.py
index 6c13f11..3de49b0 100644
--- a/tests/test_syntax/extensions/test_md_in_html.py
+++ b/tests/test_syntax/extensions/test_md_in_html.py
@@ -32,7 +32,7 @@ class TestMarkdownInHTMLPostProcessor(TestCase):
def test_stash_to_string(self):
# There should be no known cases where this actually happens so we need to
- # forcefully pass an etree Element to the method to ensure proper behavior.
+ # forcefully pass an `etree` `Element` to the method to ensure proper behavior.
element = Element('div')
element.text = 'Foo bar.'
md = Markdown(extensions=['md_in_html'])
@@ -1208,7 +1208,7 @@ class TestMdInHTML(TestCase):
def load_tests(loader, tests, pattern):
- ''' Ensure TestHTMLBlocks doesn't get run twice by excluding it here. '''
+ ''' Ensure `TestHTMLBlocks` doesn't get run twice by excluding it here. '''
suite = TestSuite()
for test_class in [TestDefaultwMdInHTML, TestMdInHTML, TestMarkdownInHTMLPostProcessor]:
tests = loader.loadTestsFromTestCase(test_class)
diff --git a/tests/test_syntax/extensions/test_tables.py b/tests/test_syntax/extensions/test_tables.py
index cd3fbe4..6a1a0d4 100644
--- a/tests/test_syntax/extensions/test_tables.py
+++ b/tests/test_syntax/extensions/test_tables.py
@@ -26,7 +26,7 @@ from markdown.extensions.tables import TableExtension
class TestTableBlocks(TestCase):
def test_empty_cells(self):
- """Empty cells (nbsp)."""
+ """Empty cells (`nbsp`)."""
text = """
  | Second Header