'Test that PendingDeprecationWarning is generated when a deprecated project level locale/ subdir is present.'

def test_warn_if_project_has_locale_subdir(self):

    project_path = join(dirname(abspath(__file__)), '..')
    warnings.filterwarnings('error', "Translations    in    the    project    directory    aren't    supported    anymore\\.    Use    the    LOCALE_PATHS    setting    instead\\.", PendingDeprecationWarning)
    _trans.__dict__ = {}
    self.assertRaises(PendingDeprecationWarning, django.utils.translation.ugettext, 'Time')
