def test_ShortCircuit(self):
        sd = {}
        for s in self.ss:
            sd[s] = 1
        for t in self.ts:
            if hasattr(t, 'x'):
                assert sd.has_key(safe_ref(t.x))
            else:
                assert sd.has_key(safe_ref(t))
Test that creation short-circuits to reuse existing references
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/external/louie/test/test_saferef.py/TestSaferef.test_ShortCircuit