<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> import os <EOL> import sys <EOL> from django . conf import settings <EOL> from django . core . management import call_command <EOL> from django . db . models . loading import cache , load_app <EOL> from django . test import TransactionTestCase <EOL> from django . test . utils import override_settings <EOL> class ProxyModelInheritanceTests ( TransactionTestCase ) : <EOL> def setUp ( self ) : <EOL> self . old_sys_path = sys . path [ : ] <EOL> sys . path . append ( os . path . dirname ( os . path . abspath ( __file__ ) ) ) <EOL> map ( load_app , settings . INSTALLED_APPS ) <EOL> def tearDown ( self ) : <EOL> sys . path = self . old_sys_path <EOL> del cache . app_store [ cache . app_labels [ '<STR_LIT>' ] ] <EOL> del cache . app_store [ cache . app_labels [ '<STR_LIT>' ] ] <EOL> del cache . app_labels [ '<STR_LIT>' ] <EOL> del cache . app_labels [ '<STR_LIT>' ] <EOL> del cache . app_models [ '<STR_LIT>' ] <EOL> del cache . app_models [ '<STR_LIT>' ] <EOL> def test_table_exists ( self ) : <EOL> call_command ( '<STR_LIT>' , verbosity = <NUM_LIT:0> ) <EOL> from . app1 . models import ProxyModel <EOL> from . app2 . models import NiceModel <EOL> self . assertEqual ( NiceModel . objects . all ( ) . count ( ) , <NUM_LIT:0> ) <EOL> self . assertEqual ( ProxyModel . objects . all ( ) . count ( ) , <NUM_LIT:0> ) <EOL> ProxyModelInheritanceTests = override_settings ( INSTALLED_APPS = ( '<STR_LIT>' , '<STR_LIT>' ) ) ( ProxyModelInheritanceTests ) </s>
