Ejemplo n.º 1
0
 def test_copy(self):
     wrap = ListProxy(MockConfig(), ListField(IntField()), [1, 2, '3'])
     wrap2 = wrap.copy()
     assert wrap == wrap2
     assert wrap.list_field is wrap2.list_field
     assert wrap.cfg is wrap2.cfg
Ejemplo n.º 2
0
 def test_copy(self):
     wrap = ListProxy(MockConfig(), IntField(), [1, 2, '3'])
     wrap2 = wrap.copy()
     assert wrap._items == wrap2._items
     assert wrap.field is wrap2.field
     assert wrap.cfg is wrap2.cfg