-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c465f69
commit 62e745a
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
from __future__ import unicode_literals | ||
import os | ||
from timeit import timeit | ||
from django.contrib.auth.models import User | ||
from django.core.urlresolvers import reverse | ||
from django.template import Template, Context | ||
from django.test import TestCase | ||
|
@@ -54,6 +55,8 @@ def setUp(self): | |
# Taken from https://criminocorpus.org/musee/282/ | ||
self.performance_test_page = read_file('performance_test_before.html') | ||
|
||
self.user = User.objects.create_superuser('test', '[email protected]', 'test') | ||
|
||
def assertDetailView(self, term, status_code=200): | ||
self.assertURL(term.get_absolute_url(), status_code=status_code) | ||
|
||
|
@@ -143,6 +146,7 @@ def test6(self): | |
'bw2': self.term6_2})) | ||
|
||
def testAdminRendering(self): | ||
self.client.login(username='test', password='test') | ||
self.assertURL( | ||
reverse('admin:terms_term_changelist')) | ||
for term in Term.objects.all(): | ||
|