

def test_latest_on_different_dtypes(self):
    factor_dtypes = (float64_dtype, datetime64ns_dtype)
    for column in TestingDataSet.columns:
        if (column.dtype == bool_dtype):
            self.assertIsInstance(column.latest, Filter)
        elif (column.dtype == int64_dtype):
            self.assertIsInstance(column.latest, Classifier)
        elif (column.dtype in factor_dtypes):
            self.assertIsInstance(column.latest, Factor)
        else:
            self.fail(('Unknown dtype %s for column %s' % (column.dtype, column)))
        self.assertIs(column.missing_value, column.latest.missing_value)

dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py ObjectIdentityTestCase.test_latest_on_different_dtypes/original