def test_app_paths(self):
        from django.contrib.auth.models import Group
        self.assertNotIn(Group, synchro_settings.MODELS)

        INSTALLED_APPS = settings.INSTALLED_APPS
        if 'django.contrib.auth' not in INSTALLED_APPS:
            INSTALLED_APPS = INSTALLED_APPS + ('django.contrib.auth',)
        with override_settings(INSTALLED_APPS=INSTALLED_APPS):
            # fully qualified path
            with override_settings(SYNCHRO_MODELS=('django.contrib.auth',)):
                reload(synchro_settings)
                self.assertIn(Group, synchro_settings.MODELS)
            # app label
            with override_settings(SYNCHRO_MODELS=('auth',)):
                reload(synchro_settings)
                self.assertIn(Group, synchro_settings.MODELS)

        # Restore previous state
        reload(synchro_settings)
        self.assertNotIn(Group, synchro_settings.MODELS)
Get range from header if it exists.
dataset/ETHPy150Open zlorf/django-synchro/synchro/tests.py/SimpleSynchroTests.test_app_paths--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/webapp/blobstore_handlers.py/BlobstoreDownloadHandler.get_range