diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_apis.py | 6 |
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)]) |