aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_apis.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-07-06 14:09:02 -0400
committerWaylan Limberg <waylan@gmail.com>2010-07-06 14:09:02 -0400
commit2b6754adb0f43e1853726f2c936dbf81c1b40736 (patch)
tree8a34ee9497053a89b67cefb18e4197649220951d /tests/test_apis.py
parent543027d73f2d9bf66fc8b56c18acfd1c987b1a8d (diff)
downloadmarkdown-2b6754adb0f43e1853726f2c936dbf81c1b40736.tar.gz
markdown-2b6754adb0f43e1853726f2c936dbf81c1b40736.tar.bz2
markdown-2b6754adb0f43e1853726f2c936dbf81c1b40736.zip
Moved HtmlStash and base Prosessor classes to the new util module.
Diffstat (limited to 'tests/test_apis.py')
-rw-r--r--tests/test_apis.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py
index 3aaa2f9..760afa8 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -96,13 +96,13 @@ class TestHtmlStash(unittest.TestCase):
""" Test Markdown's HtmlStash. """
def setUp(self):
- self.stash = markdown.preprocessors.HtmlStash()
+ self.stash = markdown.util.HtmlStash()
self.placeholder = self.stash.store('foo')
def testSimpleStore(self):
""" Test HtmlStash.store. """
self.assertEqual(self.placeholder,
- markdown.preprocessors.HTML_PLACEHOLDER % 0)
+ markdown.util.HTML_PLACEHOLDER % 0)
self.assertEqual(self.stash.html_counter, 1)
self.assertEqual(self.stash.rawHtmlBlocks, [('foo', False)])
@@ -110,7 +110,7 @@ class TestHtmlStash(unittest.TestCase):
""" Test HtmlStash.store with additional blocks. """
placeholder = self.stash.store('bar')
self.assertEqual(placeholder,
- markdown.preprocessors.HTML_PLACEHOLDER % 1)
+ markdown.util.HTML_PLACEHOLDER % 1)
self.assertEqual(self.stash.html_counter, 2)
self.assertEqual(self.stash.rawHtmlBlocks,
[('foo', False), ('bar', False)])