def test_merge_exclude(self):
        tmp = {'t': {}}
        obj = {'a': [{}, {}, {}], 'b': {'/a': {}, '~b': {}, 'cc': {}}}
        with TestContext(tmp, 't') as ctx:
            ctx.parse(obj)
        o = tmp['t']

        o1, o2 = TestObj(base.NullContext()), TestObj(base.NullContext())
        o1.merge(o, TestContext)
        o2.merge(o, TestContext, exclude=['b'])
        self.assertEqual(len(o1.a), 3)
        self.assertEqual(len(o2.a), 3)
        self.assertEqual(len(o1.b), 3)
        self.assertEqual(len(o2.b), 0)
Called when a tree item has been expanded.
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/test_base.py/SwaggerBaseTestCase.test_merge_exclude--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/viewer/tree_viewer.py/TreeViewer._on_tree_item_expanded