def test_connect_clears_cache(self):
        self.root._get_triggered_dependents()
        self.assertEqual({self.root: {self.branch, self.leaf1, self.leaf2}},
                         _TRIGGERED_CACHE)
        self.root._connect(CountingNode('leaf3'))
        self.assertEqual({}, _TRIGGERED_CACHE)
Connecting nodes invalidates the triggered nodes cache
dataset/ETHPy150Open akaihola/lusmu/lusmu/tests/test_core.py/TriggeredCacheTestCase.test_connect_clears_cache