  
      def test_app_with_import(self):
          "manage.py validate does not raise errors when an app imports a base class that itself has an abstract base"
          self.write_settings('settings.py',
              apps=['admin_scripts.app_with_import', 'django.contrib.comments'],
              sdict={'DEBUG': True})
          args = ['validate']
          out, err = self.run_manage(args)
          self.assertNoOutput(err)
          self.assertOutput(out, '0 errors found')
 
</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     def get_models(self, app_mod=None, include_auto_created=False, include_deferred=False):
 </s> add     def get_models(self, app_mod=None,
                   include_auto_created=False, include_deferred=False):
            apps=['admin_scripts.app_with_import',
                  'django.contrib.comments',
                  'django.contrib.auth',
                  'django.contrib.contenttypes',
                  'django.contrib.sites'],
  
      def test_app_with_import(self):
          "manage.py validate does not raise errors when an app imports a base class that itself has an abstract base"
          self.write_settings('settings.py',
            apps=['admin_scripts.app_with_import',
                  'django.contrib.comments',
                  'django.contrib.auth',
                  'django.contrib.contenttypes',
                  'django.contrib.sites'],
              sdict={'DEBUG': True})
          args = ['validate']
          out, err = self.run_manage(args)
          self.assertNoOutput(err)
          self.assertOutput(out, '0 errors found')
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/admin_scripts/tests.py