Created
July 26, 2014 16:06
-
-
Save mineta/c6b4b1becc6c6c906c12 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
# -*- 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