Last active
December 20, 2015 04:59
-
-
Save vbabiy/6075352 to your computer and use it in GitHub Desktop.
This file contains 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
class TestHome(TestCase): | |
def get_home(self): | |
return self.client.get('/') | |
def test_home_template_used(self): | |
self.assertTemplateUsed(self.get_home(), 'home.html') | |
def test_home_template_contains_hello_world(self): | |
self.assertContains(self.client.get('/'), 'Hello World') |
This file contains 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
class TestHome(TestCase): | |
def test_home_template_used(self): | |
self.assertTemplateUsed(self.client.get('/'), 'home.html') | |
def test_home_template_contains_hello_world(self): | |
self.assertContains(self.client.get('/'), 'Hello World') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment