Convert rendered html to unicode before substring matching
This commit is contained in:
parent
c222744829
commit
1a0eaa4aaa
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue