Convert rendered html to unicode before substring matching

This commit is contained in:
Aditya Hase 2017-09-14 19:10:19 +05:30
parent c222744829
commit 1a0eaa4aaa

View file

@ -17,7 +17,7 @@ class TestBlogPost(unittest.TestCase):
self.assertTrue(response.status_code, 200)
html = response.get_data()
html = response.get_data().decode()
self.assertTrue('<article class="blog-content" itemscope itemtype="http://schema.org/BlogPosting">' in html)
def test_generator_not_found(self):