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>
|
||||||
<section class="bg-primary" id="website">
|
<section class="bg-primary" id="website">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>Websites</h2>
|
<h2>Website</h2>
|
||||||
<p>
|
<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.
|
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>
|
</p>
|
||||||
|
|
|
@ -44,20 +44,20 @@ class HomepageTestCase(TestCase):
|
||||||
class AboutPageTestCase(TestCase):
|
class AboutPageTestCase(TestCase):
|
||||||
def test_title(self):
|
def test_title(self):
|
||||||
content = self.client.get('about/index.html')
|
content = self.client.get('about/index.html')
|
||||||
self.assertHeaderTitle(content, 'About Me')
|
self.assertHeaderTitle(content, 'About')
|
||||||
self.assertTitle(content, 'About')
|
self.assertTitle(content, 'About')
|
||||||
|
|
||||||
def test_website_section(self):
|
def test_website_section(self):
|
||||||
content = self.client.get('about/index.html')
|
content = self.client.get('about/index.html')
|
||||||
section = content.find('section', id='website')
|
section = content.find('section', id='website')
|
||||||
subtitle = section.find('h2')
|
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):
|
def test_server_section(self):
|
||||||
content = self.client.get('about/index.html')
|
content = self.client.get('about/index.html')
|
||||||
section = content.find('section', id='server')
|
section = content.find('section', id='server')
|
||||||
subtitle = section.find('h2')
|
subtitle = section.find('h2')
|
||||||
self.assertEqual('The Server', self.get_children(subtitle))
|
self.assertEqual('Server', self.get_children(subtitle))
|
||||||
|
|
||||||
def test_github_card(self):
|
def test_github_card(self):
|
||||||
content = self.client.get('about/index.html')
|
content = self.client.get('about/index.html')
|
||||||
|
|
Reference in a new issue