  import sys
  import time
  
  from django.conf import Settings
  from django.db.models.loading import cache, load_app
  from django.utils.unittest import TestCase
  
  
  class InstalledAppsGlobbingTest(TestCase):
      def setUp(self):
 
</s> remove         return models.get_model(self.app_label, self.model)
 </s> add         return models.get_model(self.app_label, self.model,
                                only_installed=False) </s> remove         return get_model(new_class._meta.app_label, name, False)
 </s> add         return get_model(new_class._meta.app_label, name,
                         seed_cache=False, only_installed=False) </s> remove             apps=['admin_scripts.app_with_import', 'django.contrib.comments'],
 </s> add             apps=['admin_scripts.app_with_import',
                  'django.contrib.comments',
                  'django.contrib.auth',
                  'django.contrib.contenttypes',
                  'django.contrib.sites'],
from django.db.models.loading import cache, load_app, get_model, get_models
  import sys
  import time
  
  from django.conf import Settings
from django.db.models.loading import cache, load_app, get_model, get_models
  from django.utils.unittest import TestCase
  
  
  class InstalledAppsGlobbingTest(TestCase):
      def setUp(self):
keep keep keep keep replace keep keep keep keep keep
 Fixed #15866, #15850 -- Prevented get_model() and get_models() from returning not-installed models (by default). Thanks adsva for report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16053 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/regressiontests/app_loading/tests.py