old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  import os
  import sys
  
  def noop_gettext(s):
      return s
  
  gettext = noop_gettext
  
  
  HELPER_SETTINGS = dict(
      CMS_PERMISSION=True,
      LANGUAGES=(
          ('en', u'English'),
          ('de', u'Deutsch'),
      ),
      LANGUAGE_CODE='en',
      PARLER_LANGUAGES={
          1: (
              {'code': 'en', 'fallbacks': ['de',]},
              {'code': 'de', 'fallbacks': ['en',]},
          ),
          'default': {
              'fallback': 'en',
              'hide_untranslated': False,
          },
      },
      PARLER_ENABLE_CACHING=False,
      # required for integration tests
      LOGIN_URL='/admin/login/?user-login=test',
      CMS_LANGUAGES={
          1: [
              {
                  'code': 'en',
                  'name': gettext('English'),
                  'fallbacks': ['de',],
              },
              {
                  'code': 'de',
                  'name': gettext('German'),
                  'fallbacks': ['en',],
              },
          ],
          'default': {
              'fallbacks': ['en', 'de',],
              'redirect_on_fallback': False,
              'public': True,
              'hide_untranslated': False,
          }
      },
      INSTALLED_APPS=[
         'djangocms_text_ckeditor',
         'djangocms_grid'
      ],
      TEMPLATE_DIRS=(
          os.path.join(
              os.path.dirname(__file__),
              'cms', 'test_utils', 'project', 'templates', 'integration'),
      ),
      CMS_TEMPLATES=(
          ('fullwidth.html', 'Fullwidth'),
          ('page.html', 'Standard page'),
      )
  )
  
  
  def run():
      from djangocms_helper import runner
  
      os.environ.setdefault('DATABASE_URL', 'sqlite://localhost/testdb.sqlite')
  
      # we use '.runner()', not '.cms()' nor '.run()' because it does not
      # add 'test' argument implicitly
      runner.runner([sys.argv[0], 'cms', '--cms', 'server'])
  
  if __name__ == "__main__":
      run()
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  import os
  import sys
  
  def noop_gettext(s):
      return s
  
  gettext = noop_gettext
  
  
  HELPER_SETTINGS = dict(
      CMS_PERMISSION=True,
      LANGUAGES=(
          ('en', u'English'),
          ('de', u'Deutsch'),
      ),
      LANGUAGE_CODE='en',
      PARLER_LANGUAGES={
          1: (
              {'code': 'en', 'fallbacks': ['de',]},
              {'code': 'de', 'fallbacks': ['en',]},
          ),
          'default': {
              'fallback': 'en',
              'hide_untranslated': False,
          },
      },
      PARLER_ENABLE_CACHING=False,
      # required for integration tests
      LOGIN_URL='/admin/login/?user-login=test',
      CMS_LANGUAGES={
          1: [
              {
                  'code': 'en',
                  'name': gettext('English'),
                  'fallbacks': ['de',],
              },
              {
                  'code': 'de',
                  'name': gettext('German'),
                  'fallbacks': ['en',],
              },
          ],
          'default': {
              'fallbacks': ['en', 'de',],
              'redirect_on_fallback': False,
              'public': True,
              'hide_untranslated': False,
          }
      },
      INSTALLED_APPS=[
          'reversion',
          'djangocms_text_ckeditor',
          'djangocms_grid',
      ],
      TEMPLATE_DIRS=(
          os.path.join(
              os.path.dirname(__file__),
              'cms', 'test_utils', 'project', 'templates', 'integration'),
      ),
      CMS_TEMPLATES=(
          ('fullwidth.html', 'Fullwidth'),
          ('page.html', 'Standard page'),
      )
  )
  
  
  def run():
      from djangocms_helper import runner
  
      os.environ.setdefault('DATABASE_URL', 'sqlite://localhost/testdb.sqlite')
  
      # we use '.runner()', not '.cms()' nor '.run()' because it does not
      # add 'test' argument implicitly
      runner.runner([sys.argv[0], 'cms', '--cms', 'server'])
  
  if __name__ == "__main__":
      run()
  
subject: add reversion