Commit 82a74dce authored by Claude Paroz's avatar Claude Paroz
Browse files

Used TransactionTestCase in ModWsgiHandlerTestCase

Now the data created in setUp() is not discarded when the connection
is closed in the handler's methods.
parent 2f6e00a8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
    """