<s> import os <EOL> from django . conf import settings <EOL> from django . test import TestCase <EOL> from django . contrib . auth . models import User <EOL> class BaseTestCase ( TestCase ) : <EOL> def setUp ( self ) : <EOL> super ( BaseTestCase , self ) . setUp ( ) <EOL> settings . TEMPLATE_DIRS = ( <EOL> os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) , <EOL> ) <EOL> User . objects . create_user ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> def user ( self ) : <EOL> return User . objects . get ( username = '<STR_LIT>' ) </s>
