def test_lang(self): self.assertEqual(ety.Language('eng').name, 'English') self.assertEqual(ety.Language('lat').name, 'Latin') self.assertEqual( ety.Language('enm').name, 'Middle English (1100-1500)')
def test_lang(self): self.assertEqual(ety.Language("eng").name, "English") self.assertEqual(ety.Language("lat").name, "Latin") self.assertEqual( ety.Language("enm").name, "Middle English (1100-1500)")
def test_lang_equal(self): a = ety.Language("eng") b = ety.Language("eng") c = ety.Language("lat") self.assertEqual(a, b) self.assertNotEqual(b, c)
def test_lang_equal(self): a = ety.Language('eng') b = ety.Language('eng') c = ety.Language('lat') self.assertEqual(a, b) self.assertNotEqual(b, c)