def test_put(self): obj = W_BasicObject() obj.put(u'foo', 1) assert obj.get(u'foo') == 1
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