- assert len(item.names) == len(item.texts)
- for lang in item.texts:
- assert item.names[lang] == item.texts[lang].name
- assert item.names[lang] == item.names[lang.identifier]
- assert lang in item.names
- assert lang.identifier in item.names
- assert "language that doesn't exist" not in item.names
- assert tables.Language() not in item.names
+ assert len(item.name_map) == len(item.names)
+ for lang in item.names:
+ assert item.name_map[lang] == item.names[lang].name
+ assert lang in item.name_map
+ assert "language that doesn't exist" not in item.name_map
+ assert tables.Language() not in item.name_map