1
Fork 0

update header assert in tests

This commit is contained in:
Jake Howard 2017-01-17 22:14:01 +00:00
parent 0bf9bbfcfb
commit d085781ada

View file

@ -35,7 +35,7 @@ class TestCase(unittest.TestCase):
self.assertIn(title, content.title.string) self.assertIn(title, content.title.string)
def assertHeaderTitle(self, content, title): def assertHeaderTitle(self, content, title):
header_title = content.find('h1', class_="section-heading") header_title = content.find('div', class_="header-content").find('h1')
self.assertIn(title, self.get_children(header_title)) self.assertIn(title, self.get_children(header_title))
def assertSamePath(self, p1, p2): def assertSamePath(self, p1, p2):