

def test_require_super_call_in_validate(self):

    class MyFactor(Factor):
        inputs = ()
        dtype = float64_dtype
        window_length = 0

        def _validate(self):
            "Woops, I didn't call super()!"
    with self.assertRaises(AssertionError) as e:
        MyFactor()
    errmsg = str(inputs.exception)
    self.assertEqual(errmsg, 'Term._validate() was not called.\nThis probably means that you overrode _validate without calling super().')

dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py ObjectIdentityTestCase.test_require_super_call_in_validate/VarMisuse@66/99 `e`->`inputs`