def test_add_language(self): testLang = TestDict(**{ 'language': 'test', 'iso_2': 'te', 'iso_3': 'tes' }) langRec = ESDoc.addLanguage(testLang) self.assertEqual(langRec.language, 'test') self.assertEqual(langRec.iso_3, 'tes')
def test_add_language(self): testLang = TestDict(**{ 'language': 'test', 'iso_2': 'te', 'iso_3': 'tes' }) langRec = ESDoc.addLanguage(testLang) assert langRec.language == 'test' assert langRec.iso_3 == 'tes'