def test_base_binding_sort(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.sort(reverse=True) assert t.Values == (10,9,8,7,6,5,4,3,2,1)
def test_base_binding_sort(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.sort(reverse=True) assert t.Values == (10, 9, 8, 7, 6, 5, 4, 3, 2, 1)