Last active
April 26, 2020 18:18
-
-
Save LouisdeBruijn/386e8130d9df2b40072dfe87d6e7205d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.test import TestCase | |
| from projectname.views import home_page | |
| class HomePageTest(TestCase): | |
| """Unittesting class for our Django project.""" | |
| def test_home_page_returns_correct_html(self): | |
| """Test home_page template.""" | |
| response = self.client.get('/') | |
| self.assertTemplateUsed(response, 'home_page.html') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment