Used TransactionTestCase in ModWsgiHandlerTestCase

Now the data created in setUp() is not discarded when the connection
is closed in the handler's methods.
This commit is contained in:
Claude Paroz 2012-09-29 12:10:52 +02:00
parent 2f6e00a840
commit 82a74dce24
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@ from __future__ import unicode_literals
from django.contrib.auth.handlers.modwsgi import check_password, groups_for_user
from django.contrib.auth.models import User, Group
from django.test import TestCase
from django.test import TransactionTestCase
class ModWsgiHandlerTestCase(TestCase):
class ModWsgiHandlerTestCase(TransactionTestCase):
"""
Tests for the mod_wsgi authentication handler
"""