From 03bf339b594db40592d3a4848ec1e5402a371df2 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 6 Jul 2010 15:43:11 -0400 Subject: Removed Global variable HTML_PLACEHOLDER. Use HtmlStash.get_placeholder(key) if you need it. --- tests/test_apis.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') 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)]) -- cgit v1.2.3