@@ -0,0 +1,1307 @@
+import os%0D%0Aimport unittest%0D%0Aimport json%0D%0Afrom collections import OrderedDict%0D%0Afrom gooey import languages%0D%0A%0D%0Afrom gooey.gui.processor import ProcessController%0D%0A%0D%0A%0D%0Aclass TestLanguageParity(unittest.TestCase):%0D%0A    %22%22%22%0D%0A    Checks that all language files have the same set of keys so that non-english%0D%0A    languages don't silently break as features are added to Gooey.%0D%0A    %22%22%22%0D%0A%0D%0A    def test_languageParity(self):%0D%0A        langDir = os.path.dirname(languages.__file__)%0D%0A        englishFile = os.path.join(langDir, 'english.json')%0D%0A%0D%0A        english = self.readFile(englishFile)%0D%0A        jsonFiles = %5B(path, self.readFile(os.path.join(langDir, path)))%0D%0A                      for path in os.listdir(langDir)%0D%0A                      if path.endswith('json') and 'poooo' not in path and '2' not in path%5D%0D%0A%0D%0A        allKeys = set(english.keys())%0D%0A        for name, contents in jsonFiles:%0D%0A            missing = allKeys.difference(set(contents.keys()))%0D%0A            self.assertEqual(%0D%0A                set(),%0D%0A                missing,%0D%0A                %22%7B%7D language file is missing keys: %5B%7B%7D%5D%22.format(name, missing)%0D%0A            )%0D%0A%0D%0A%0D%0A    def readFile(self, path):%0D%0A        with open(path, 'r', encoding='utf-8') as f:%0D%0A            return json.loads(f.read())%0D%0A%0D%0A%0D%0Aif __name__ == '__main__':%0D%0A    unittest.main()%0D%0A

Add regression test for language files