Exemplo n.º 1
0
 def test_base_binding_clear(self):
     t = TestTarget()
     c = ViewCollection(1,2,3,4,5,6,7,8,9,10)
     t << c
     c.update_bindings()
     assert t.Values == (1,2,3,4,5,6,7,8,9,10)
     c.clear()
     assert t.Values == ()
Exemplo n.º 2
0
 def test_base_binding_clear(self):
     t = TestTarget()
     c = ViewCollection(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
     t << c
     c.update_bindings()
     assert t.Values == (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
     c.clear()
     assert t.Values == ()