def test_associating_facts_get_custom_default(self): apple = Entity('apple') DBSession.add(apple) DBSession.commit() apple['foo'] = u'bar' eq_(apple.get('baz', 'zomg'), 'zomg')
def test_associating_facts_unicode_by_get(self): apple = Entity('apple') DBSession.add(apple) DBSession.commit() apple['foo'] = u'bar' eq_(apple.get('foo'), 'bar')