<s> import os <EOL> import sys <EOL> import unittest <EOL> import doctest <EOL> import django <EOL> import logging <EOL> APP_MODULE = '<STR_LIT>' <EOL> def main ( ) : <EOL> """<STR_LIT>""" <EOL> os . environ [ "<STR_LIT>" ] = "<STR_LIT>" <EOL> from django . conf import global_settings <EOL> global_settings . INSTALLED_APPS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> APP_MODULE , <EOL> ) <EOL> global_settings . DATABASE_ENGINE = "<STR_LIT>" <EOL> global_settings . DATABASE_NAME = "<STR_LIT>" <EOL> global_settings . ROOT_URLCONF = '<STR_LIT>' <EOL> global_settings . MIDDLEWARE_CLASSES = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> from jogging . handlers import DatabaseHandler , MockHandler <EOL> global_settings . GLOBAL_LOG_HANDLERS = [ ] <EOL> global_settings . GLOBAL_LOG_LEVEL = logging . INFO <EOL> global_settings . LOGGING = { } <EOL> from django . test . utils import get_runner <EOL> test_runner = get_runner ( global_settings ) <EOL> if django . VERSION > ( <NUM_LIT:1> , <NUM_LIT:2> ) : <EOL> test_runner = test_runner ( ) <EOL> failures = test_runner . run_tests ( [ APP_MODULE ] ) <EOL> else : <EOL> failures = test_runner ( [ APP_MODULE ] , verbosity = <NUM_LIT:1> ) <EOL> sys . exit ( failures ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
