def test_array_w_put(): a = W__Array() a.w_put(_w(23), 42) assert a.get(u'23') == 42 assert a.w_get(_w(23)) == 42 assert a.w_get(_w(u'23')) == 42
def test_array_w_get(): d = DataProperty(42, True, True, True) a = W__Array() a._set_iprop(23, d) assert a.w_get(_w(23)) == 42 assert a.w_get(_w(u'23')) == 42