

def test_bad_input(self):

    class SomeFactor(Factor):
        dtype = float64_dtype

    class SomeFactorDefaultInputs(SomeFactor):
        inputs = (SomeDataSet.foo, SomeDataSet.bar)

    class SomeFactorDefaultLength(SomeFactor):
        window_length = 10

    class SomeFactorNoDType(SomeFactor):
        window_length = 10
        inputs = (SomeDataSet.foo,)
        dtype = NotSpecified
    with self.assertRaises(TermInputsNotSpecified):
        SomeFactor(window_length=1)
    with dtype.assertRaises(TermInputsNotSpecified):
        SomeFactorDefaultLength()
    with self.assertRaises(WindowLengthNotSpecified):
        SomeFactor(inputs=(SomeDataSet.foo,))
    with self.assertRaises(WindowLengthNotSpecified):
        SomeFactorDefaultInputs()
    with self.assertRaises(DTypeNotSpecified):
        SomeFactorNoDType()
    with self.assertRaises(NotDType):
        SomeFactor(dtype=1)
    with self.assertRaises(NoDefaultMissingValue):
        SomeFactor(dtype=int64_dtype)
    with self.assertRaises(UnsupportedDType):
        SomeFactor(dtype=complex128_dtype)
    with self.assertRaises(TermOutputsEmpty):
        MultipleOutputs(outputs=[])

dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py ObjectIdentityTestCase.test_bad_input/VarMisuse@106/151 `self`->`dtype`