def test2(): proxy = ObjectProxy('foo') proxy.set(Foo('David')) assert 'David' == proxy.name assert 'ObjectProxy' == proxy.__class__.__name__
def test1(): proxy = ObjectProxy('proxy') proxy.set(dict(foo='hello world')) assert 'foo' in proxy.keys() assert 'ObjectProxy' == proxy.__class__.__name__