fix tests, remove zh_CN from config until we have support

This commit is contained in:
Adam Palay
2013-08-01 13:42:39 -04:00
parent ac1ac2d93d
commit 3be155bd88
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
{
"locales" : ["en", "zh_CN"],
"locales" : ["en"],
"dummy-locale" : "fr"
}

View File

@@ -46,7 +46,7 @@ class TestGenerate(TestCase):
path = os.path.join(CONFIGURATION.get_messages_dir(locale), mofile)
exists = os.path.exists(path)
self.assertTrue(exists, msg='Missing file in locale %s: %s' % (locale, mofile))
self.assertTrue(datetime.fromtimestamp(os.path.getmtime(path)) >= self.start_time,
self.assertTrue(datetime.fromtimestamp(os.path.getmtime(path), UTC) >= self.start_time,
msg='File not recently modified: %s' % path)
self.assert_merge_headers(locale)