<s> """<STR_LIT>""" <EOL> from django . test . testcases import TestCase <EOL> from test_utils . testmaker import Testmaker <EOL> from django . conf import settings <EOL> import os <EOL> class TestMakerTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> urls = "<STR_LIT>" <EOL> fixtures = [ '<STR_LIT>' ] <EOL> def setUp ( self ) : <EOL> self . tm = Testmaker ( ) <EOL> self . tm . setup_logging ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> Testmaker . enabled = True <EOL> self . tm . insert_middleware ( ) <EOL> def tearDown ( self ) : <EOL> os . remove ( '<STR_LIT>' ) <EOL> os . remove ( '<STR_LIT>' ) <EOL> def test_basic_testmaker ( self ) : <EOL> self . client . get ( '<STR_LIT:/>' ) <EOL> logs = open ( '<STR_LIT>' ) <EOL> output = logs . read ( ) <EOL> self . assertTrue ( output . find ( '<STR_LIT>' ) != - <NUM_LIT:1> ) <EOL> def test_twill_processor ( self ) : <EOL> settings . TESTMAKER_PROCESSOR = '<STR_LIT>' <EOL> self . client . get ( '<STR_LIT:/>' ) <EOL> self . client . get ( '<STR_LIT>' ) <EOL> logs = open ( '<STR_LIT>' ) <EOL> output = logs . read ( ) <EOL> self . assertTrue ( output . find ( '<STR_LIT>' ) != - <NUM_LIT:1> ) <EOL> def test_not_inserting_multiple_times ( self ) : <EOL> """<STR_LIT>""" <EOL> self . tm . insert_middleware ( ) <EOL> self . tm . insert_middleware ( ) <EOL> middleware = settings . MIDDLEWARE_CLASSES <EOL> self . assertEqual ( sorted ( list ( middleware ) ) , sorted ( list ( set ( middleware ) ) ) ) </s>
