Skip to content

Instantly share code, notes, and snippets.

@vbabiy
Last active December 20, 2015 04:59
Show Gist options
  • Save vbabiy/6075352 to your computer and use it in GitHub Desktop.
Save vbabiy/6075352 to your computer and use it in GitHub Desktop.
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')
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