old_contents: """Unit test module for internationalization logic"""
  from flask_webtest import SessionScope
  from tests import TestCase, TEST_USER_ID
  from flask import current_app
  from flask.ext.login import login_user
  
  from portal.models.i18n import get_locale
  from portal.models.user import User
  
  
  class TestI18n(TestCase):
      """I18n tests"""
  
      def test_get_locale(self):
          self.assertEquals(get_locale(),current_app.config.get("DEFAULT_LOCALE"))
  
          language = 'en_AU'
          language_name = "Australian English"
  
          test_user = User.query.get(TEST_USER_ID)
          test_user.locale = (language,language_name)
  
          login_user(test_user)
          self.assertEquals(get_locale(), language)
          
new_contents: """Unit test module for internationalization logic"""
  from tests import TestCase, TEST_USER_ID
  from flask import current_app
  from flask_login import login_user
  
  from portal.models.i18n import get_locale
  from portal.models.user import User
  
  
  class TestI18n(TestCase):
      """I18n tests"""
  
      def test_get_locale(self):
          self.assertEquals(get_locale(),current_app.config.get("DEFAULT_LOCALE"))
  
          language = 'en_AU'
          language_name = "Australian English"
  
          test_user = User.query.get(TEST_USER_ID)
          test_user.locale = (language,language_name)
  
          login_user(test_user)
          self.assertEquals(get_locale(), language)
          
  
subject: Clean up deprication warning