

def test_no_warn_if_project_and_locale_paths_overlap(self):
    "Test that DeprecationWarning isn't generated when a deprecated project level locale/ subdir is also included in LOCALE_PATHS."
    project_path = join(dirname(abspath(__file__)), '..')
    settings.LOCALE_PATHS += (normpath(join(project_path, 'locale')),)
    warnings.filterwarnings('error', "Translations in the project directory aren't supported anymore\\. Use the LOCALE_PATHS setting instead\\.", DeprecationWarning)
    _trans.__dict__ = {
        
    }
    try:
        django.utils.translation.ugettext('Time')
    except DeprecationWarning:
        self.fail("DeprecationWarning shouldn't be raised when settings/project locale and a LOCALE_PATHS member point to the same file system location.")

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/i18n/test_warnings.py DeprecationWarningTests.test_no_warn_if_project_and_locale_paths_overlap/original