Fakultas Ilmu Komputer UI

Commit eb08bd38 authored by Rayza Arasj Mahardhika's avatar Rayza Arasj Mahardhika
Browse files

change unit test for checking full name in homepage

parent 941043c5
......@@ -16,7 +16,7 @@ class HomePageTest(TestCase):
html = response.content.decode('utf8')
self.assertTrue(html.startswith('<html>'))
self.assertIn('<title>Rayza\'s Homepage</title>', html)
self.assertIn('<h1>Welcome to Rayza\'s Homepage</h1>', html)
self.assertIn('<h1>Hello, my name is Rayza Arasj Mahardhika</h1>', html)
self.assertTrue(html.endswith('</html>'))
class AboutPageTest(TestCase):
......@@ -31,6 +31,8 @@ class AboutPageTest(TestCase):
html = response.content.decode('utf8')
self.assertTrue(html.startswith('<html>'))
self.assertIn('<title>Rayza\'s About Page</title>', html)
self.assertIn('<h1>Hello, my name is Rayza Arasj Mahardhika</h1>', html)
self.assertIn('<h1>Here\'s a few facts about me</h1>', html)
self.assertIn('<p>I\'m 21 years old</p>', html)
self.assertIn('<p>I\'m from Bogor</p>', html)
self.assertIn('<p>I\'m currently studying Computer Science at Faculty of Computer Science, Universitas Indonesia</p>', html)
self.assertTrue(html.endswith('</html>'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment