old_contents: import os
  import sys
  import glob
  
  BASE_DIR = os.path.abspath(os.path.dirname(__file__))
  sys.path.append(os.path.abspath(os.path.join(BASE_DIR, '..')))
  
  CUSTOM_INSTALLED_APPS = (
      'ratechecker',
      'countylimits',
      'mortgageinsurance',
      'django.contrib.admin',
  )
  
  ALWAYS_INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  )
  
  ALWAYS_MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  )
  
  SECRET_KEY = "django_tests_secret_key"
  DEBUG = True
  TEMPLATE_DEBUG = False
  ALLOWED_HOSTS = []
  INSTALLED_APPS = ALWAYS_INSTALLED_APPS + CUSTOM_INSTALLED_APPS
  MIDDLEWARE_CLASSES = ALWAYS_MIDDLEWARE_CLASSES
  ROOT_URLCONF = 'oahapi.urls'
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
      }
  }
  LANGUAGE_CODE = 'en-us'
  TIME_ZONE = 'UTC'
  USE_I18N = True
  USE_L10N = True
  USE_TZ = True
  STATIC_URL = '/static/'
  # Use a fast hasher to speed up tests.
  PASSWORD_HASHERS = (
      'django.contrib.auth.hashers.MD5PasswordHasher',
  )
  FIXTURE_DIRS = glob.glob(BASE_DIR + '/' + '*/fixtures/')
  
new_contents: import os
  import sys
  
  BASE_DIR = os.path.abspath(os.path.dirname(__file__))
  sys.path.append(os.path.abspath(os.path.join(BASE_DIR, '..')))
  
  CUSTOM_INSTALLED_APPS = (
      'ratechecker',
      'countylimits',
      'mortgageinsurance',
  )
  
  ALWAYS_INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  )
  
  ALWAYS_MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  )
  
  SECRET_KEY = "django_tests_secret_key"
  DEBUG = True
  TEMPLATE_DEBUG = False
  ALLOWED_HOSTS = []
  INSTALLED_APPS = ALWAYS_INSTALLED_APPS + CUSTOM_INSTALLED_APPS
  MIDDLEWARE_CLASSES = ALWAYS_MIDDLEWARE_CLASSES
  ROOT_URLCONF = 'oahapi.urls'
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
      }
  }
  LANGUAGE_CODE = 'en-us'
  TIME_ZONE = 'UTC'
  USE_I18N = True
  USE_L10N = True
  USE_TZ = True
  STATIC_URL = '/static/'
  
subject: clean up test settings