示例#1
0
    def test_put(self):
        obj = W_BasicObject()

        obj.put(u'foo', 1)
        assert obj.get(u'foo') == 1
示例#2
0
    def test_put(self):
        obj = W_BasicObject()

        obj.put(u'foo', 1)
        assert obj.get(u'foo') == 1
示例#3
0
    def test_get(self):
        obj = W_BasicObject()

        desc = PropertyDescriptor(value=1, writable=True)
        obj.define_own_property(u'foo', desc)
        assert obj.get(u'foo') == 1
示例#4
0
    def test_get(self):
        obj = W_BasicObject()

        desc = PropertyDescriptor(value=1, writable=True)
        obj.define_own_property(u'foo', desc)
        assert obj.get(u'foo') == 1