aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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 d34f2c0..0943b92 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -53,8 +53,8 @@ class TestBlockParser(unittest.TestCase):
""" Test BlockParser.parseDocument. """
lines = ['#foo', '', 'bar', '', ' baz']
tree = self.parser.parseDocument(lines)
- self.assert_(isinstance(tree, markdown.util.etree.ElementTree))
- self.assert_(markdown.util.etree.iselement(tree.getroot()))
+ self.assertTrue(isinstance(tree, markdown.util.etree.ElementTree))
+ self.assertTrue(markdown.util.etree.iselement(tree.getroot()))
self.assertEqual(markdown.searializers.to_xhtml_string(tree.getroot()),
"<div><h1>foo</h1><p>bar</p><pre><code>baz\n</code></pre></div>")
@@ -295,7 +295,7 @@ class testETreeComments(unittest.TestCase):
def testCommentIsComment(self):
""" Test that an ElementTree Comment passes the `is Comment` test. """
- self.assert_(self.comment.tag is markdown.util.etree.test_comment)
+ self.assertTrue(self.comment.tag is markdown.util.etree.test_comment)
def testCommentIsBlockLevel(self):
""" Test that an ElementTree Comment is recognized as BlockLevel. """