aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-07-06 15:43:11 -0400
committerWaylan Limberg <waylan@gmail.com>2010-07-06 15:43:11 -0400
commit03bf339b594db40592d3a4848ec1e5402a371df2 (patch)
tree5f10cca2688cc5444a52756f80e85ab5456c4099 /tests
parent2cb9cc8e90fc54dddf844edb167321a2fd370991 (diff)
downloadmarkdown-03bf339b594db40592d3a4848ec1e5402a371df2.tar.gz
markdown-03bf339b594db40592d3a4848ec1e5402a371df2.tar.bz2
markdown-03bf339b594db40592d3a4848ec1e5402a371df2.zip
Removed Global variable HTML_PLACEHOLDER. Use HtmlStash.get_placeholder(key) if you need it.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_apis.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py
index 760afa8..0c81585 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -101,16 +101,14 @@ class TestHtmlStash(unittest.TestCase):
def testSimpleStore(self):
""" Test HtmlStash.store. """
- self.assertEqual(self.placeholder,
- markdown.util.HTML_PLACEHOLDER % 0)
+ self.assertEqual(self.placeholder, self.stash.get_placeholder(0))
self.assertEqual(self.stash.html_counter, 1)
self.assertEqual(self.stash.rawHtmlBlocks, [('foo', False)])
def testStoreMore(self):
""" Test HtmlStash.store with additional blocks. """
placeholder = self.stash.store('bar')
- self.assertEqual(placeholder,
- markdown.util.HTML_PLACEHOLDER % 1)
+ self.assertEqual(placeholder, self.stash.get_placeholder(1))
self.assertEqual(self.stash.html_counter, 2)
self.assertEqual(self.stash.rawHtmlBlocks,
[('foo', False), ('bar', False)])