def test_lazy_data_wr():

    class Foo:
        pass

    foo = Foo()
    rr = RouterLazy(foo)
    rr.x = 123
    assert(foo.x == 123)
def test_lazy_prop_wr():

    class Foo:
        def set_x(self, val):
            self.x_val = val

        x = property(lambda obj: None, set_x)

    foo = Foo()
    rr = RouterLazy(foo)
    rr.x = 123
    assert(foo.x_val == 123)