'Runs generate.main() which should merge source files,
then compile all sources in all configured languages.
Validates output by checking all .mo files in all configured languages.
.mo files should exist, and be recently created (modified
after start of test suite)'

def test_main(self):

    self.configuration.dummy_locales = ['fake2']
    generate.main(verbosity=0, strict=False)
    for locale in self.configuration.translated_locales:
        for filename in ('django', 'djangojs'):
            mofile = (filename + '.mo')
            path = os.path.join(self.configuration.get_messages_dir(locale), mofile)
            exists = os.path.exists(path)
            self.assertTrue(exists, msg=('Missing    file    in    locale    %s:    %s' % (locale, mofile)))
            self.assertGreaterEqual(datetime.fromtimestamp(os.path.getmtime(path), UTC), self.start_time, msg=('File    not    recently    modified:    %s' % path))
