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 == ()
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 == ()