'Test that PendingDeprecationWarning isn\'t generated when a deprecated project level locale/ subdir is also included in LOCALE_PATHS.'

def test_no_warn_if_project_and_locale_paths_overlap(self):

    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\\.", PendingDeprecationWarning)
    _trans.__dict__ = {}
    try:
        django.utils.translation.ugettext('Time')
    except PendingDeprecationWarning:
        self.fail("PendingDeprecationWarning    shouldn't    be    raised    when    settings/project    locale    and    a    LOCALE_PATHS    member    point    to    the    same    file    system    location.")
