- item.names[u'test'] = u"foo"
- assert item.names[language] == "foo"
- assert item.names['test'] == "foo"
- assert 'de' in item.names
- assert language in item.names
- item.names[language] = u"xyzzy"
- assert item.names[language] == "xyzzy"
- assert item.names['test'] == "xyzzy"
-
- @raises(NotImplementedError)
- def test_delstring(self):
- item = self.connection.query(tables.Item).filter_by(
- identifier=u"jade-orb").one()
- del item.names['en']
+ item.name_map[language] = u"foo"
+ assert item.name_map[language] == "foo"
+ assert language in item.name_map
+ item.name_map[language] = u"xyzzy"
+ assert item.name_map[language] == "xyzzy"