

def test_instance_caching(self):
    self.assertSameObject(*gen_equivalent_factors())
    self.assertIs(SomeFactor(window_length=(SomeFactor.window_length + 1)), SomeFactor(window_length=(SomeFactor.window_length + 1)))
    self.assertIs(SomeFactor(dtype=float64_dtype), SomeFactor(dtype=float64_dtype))
    self.assertIs(SomeFactor(inputs=[SomeFactor.inputs[1], SomeFactor.inputs[0]]), SomeFactor(inputs=[SomeFactor.inputs[1], SomeFactor.inputs[0]]))
    mask = (SomeFactor() + SomeOtherFactor())
    self.assertIs(SomeFactor(mask=mask), SomeFactor(mask=self))

dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py ObjectIdentityTestCase.test_instance_caching/VarMisuse@144/182 `mask`->`self`