def test_nested_dict_aliasing():
 ad = _AliasDict({'bar': False, 'biz': True}, aliases={'foo': ['bar', 'nested'], 'nested': ['biz']})
 eq_(ad['bar'], False)
 eq_(ad['biz'], True)
 ad['foo'] = True
 eq_(ad['bar'], True)
 eq_(ad['biz'], True)

def test_nested_dict_aliasing ( ) : ad = _AliasDict ( { 'bar' : False , 'biz' : True } , aliases = { 'foo' : [ 'bar' , 'nested' ] , 'nested' : [ 'biz' ] } ) eq_ ( ad [ 'bar' ] , False ) eq_ ( ad [ 'biz' ] , True ) ad [ 'foo' ] = True eq_ ( ad [ 'bar' ] , True ) eq_ ( ad [ 'biz' ] , True )
aliases can be nested .