updated admin tests

This commit is contained in:
Ales Zoulek 2010-11-12 15:46:14 +01:00
parent 723ef2cd91
commit 7bf545d7ae
3 changed files with 5 additions and 3 deletions

View file

@ -20,7 +20,7 @@ INSTALLED_APPS = (
'testproject.test_app',
)
ROOT_URLCONF = 'testproject.test_urls'
ROOT_URLCONF = 'testproject.urls'
CONSTANCE_CONNECTION_CLASS = 'testproject.test_app.redis_mockup.Connection'

View file

@ -73,7 +73,6 @@ class TestStorage(TestCase):
class TestAdmin(TestCase):
urls = 'tests.tests'
model = Config
def setUp(self):
@ -83,5 +82,6 @@ class TestAdmin(TestCase):
self.client.login(username=self.user, password='nimda')
def test_changelist(self):
self.assertEquals(self.options.changelist_view(self.fake_request, {}), {})
response = self.options.changelist_view(self.fake_request, {})
self.assertEquals(response.status_code, 200)

View file

@ -1,3 +1,5 @@
from django.contrib import admin
from django.conf.urls.defaults import patterns, include
urlpatterns = patterns('',