Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/s/i/simplestore-0.3.1/simplestore/tests/test_object_proxy.py   simplestore(Download)
def test1():
    proxy = ObjectProxy('proxy')
    proxy.set(dict(foo='hello world'))
    assert 'foo' in proxy.keys()
    assert 'ObjectProxy' == proxy.__class__.__name__
def test2():
    proxy = ObjectProxy('foo')
    proxy.set(Foo('David'))
    assert 'David' == proxy.name
    assert 'ObjectProxy' == proxy.__class__.__name__
        def run(self):
            proxy.set(Foo(self.name))
            self.proxy_object_id = id(proxy._obj())
            assert self.name == proxy.name
            assert 'ObjectProxy' == proxy.__class__.__name__

src/s/i/simplestore-HEAD/simplestore/tests/test_object_proxy.py   simplestore(Download)
def test1():
    proxy = ObjectProxy('proxy')
    proxy.set(dict(foo='hello world'))
    assert 'foo' in proxy.keys()
    assert 'ObjectProxy' == proxy.__class__.__name__
def test2():
    proxy = ObjectProxy('foo')
    proxy.set(Foo('David'))
    assert 'David' == proxy.name
    assert 'ObjectProxy' == proxy.__class__.__name__
        def run(self):
            proxy.set(Foo(self.name))
            self.proxy_object_id = id(proxy._obj())
            assert self.name == proxy.name
            assert 'ObjectProxy' == proxy.__class__.__name__