def testShortCircuit(self):
        sd = {}
        for s in self.ss:
            sd[s] = 1
        for t in self.ts:
            if hasattr(t, 'x'):
                self.assertTrue(safeRef(t.x) in sd)
            else:
                self.assertTrue(safeRef(t) in sd)
Test that creation short-circuits to reuse existing references
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/dispatch/tests/test_saferef.py/SaferefTests.testShortCircuit