Fix about page tests
This commit is contained in:
parent
17c65ee6e0
commit
233ff900d6
2 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
|||
</section>
|
||||
<section class="bg-primary" id="website">
|
||||
<div class="container">
|
||||
<h2>Websites</h2>
|
||||
<h2>Website</h2>
|
||||
<p>
|
||||
My website is the culmination of all my knowledge, compiled into 1 place. It not only contains all my projects, but is itself is a project.
|
||||
</p>
|
||||
|
|
|
@ -44,20 +44,20 @@ class HomepageTestCase(TestCase):
|
|||
class AboutPageTestCase(TestCase):
|
||||
def test_title(self):
|
||||
content = self.client.get('about/index.html')
|
||||
self.assertHeaderTitle(content, 'About Me')
|
||||
self.assertHeaderTitle(content, 'About')
|
||||
self.assertTitle(content, 'About')
|
||||
|
||||
def test_website_section(self):
|
||||
content = self.client.get('about/index.html')
|
||||
section = content.find('section', id='website')
|
||||
subtitle = section.find('h2')
|
||||
self.assertEqual('About my website', self.get_children(subtitle))
|
||||
self.assertEqual('Website', self.get_children(subtitle))
|
||||
|
||||
def test_server_section(self):
|
||||
content = self.client.get('about/index.html')
|
||||
section = content.find('section', id='server')
|
||||
subtitle = section.find('h2')
|
||||
self.assertEqual('The Server', self.get_children(subtitle))
|
||||
self.assertEqual('Server', self.get_children(subtitle))
|
||||
|
||||
def test_github_card(self):
|
||||
content = self.client.get('about/index.html')
|
||||
|
|
Reference in a new issue