<s> from __future__ import unicode_literals <EOL> from django . conf import settings <EOL> from daydreamer . tests . views import generic <EOL> class TestCase ( generic . TestCase ) : <EOL> """<STR_LIT>""" <EOL> clickjacking_middleware_enabled = False <EOL> def setUp ( self ) : <EOL> if not self . clickjacking_middleware_enabled : <EOL> self . _clickjacking_middleware = settings . MIDDLEWARE_CLASSES <EOL> settings . MIDDLEWARE_CLASSES = tuple ( <EOL> middleware for middleware in settings . MIDDLEWARE_CLASSES <EOL> if middleware != <EOL> "<STR_LIT>" ) <EOL> super ( TestCase , self ) . setUp ( ) <EOL> def tearDown ( self ) : <EOL> super ( TestCase , self ) . tearDown ( ) <EOL> if not self . clickjacking_middleware_enabled : <EOL> settings . MIDDLEWARE_CLASSES = self . _clickjacking_middleware <EOL> del self . _clickjacking_middleware </s>
