'gen_filenames() also yields from the current directory (project root).'

@override_settings(INSTALLED_APPS=[])
def test_project_root_locale(self):

    old_cwd = os.getcwd()
    os.chdir(os.path.dirname(__file__))
    current_dir = os.path.join(os.path.dirname(__file__), 'locale')
    current_dir_mo = os.path.join(current_dir, 'nl', 'LC_MESSAGES', 'django.mo')
    try:
        self.assertFileFound(current_dir_mo)
    finally:
        os.chdir(old_cwd)
