Skip to content

Instantly share code, notes, and snippets.

@mineta
Created July 26, 2014 16:06
Show Gist options
  • Save mineta/c6b4b1becc6c6c906c12 to your computer and use it in GitHub Desktop.
Save mineta/c6b4b1becc6c6c906c12 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
from django.test import TestCase
from django.core.urlresolvers import reverse
class TestHomePage(TestCase):
def test_uses_index_template(self):
response = self.client.get(reverse("home"))
self.assertTemplateUsed(response, "taskbuster/index.html")
def test_uses_base_template(self):
response = self.client.get(reverse("home"))
self.assertTemplateUsed(response, "base.html")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment