

def test_subdataset(self):
    some_dataset_map = {column.name: column for column in SomeDataSet.columns}
    sub_dataset_map = {column.name: column for column in SubDataSet.columns}
    self.assertEqual({column.name for column in SomeDataSet.columns}, {column.name for column in SubDataSet.columns})
    for (k, some_dataset_column) in some_dataset_map.items():
        sub_dataset_column = sub_dataset_map[k]
        self.assertIsNot(sub_dataset_column, sub_dataset_column, ('subclass column %r should not have the same identity as the parent' % k))
        self.assertEqual(some_dataset_column.dtype, sub_dataset_column.dtype, ('subclass column %r should have the same dtype as the parent' % k))

dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py SubDataSetTestCase.test_subdataset/VarMisuse@97/137 `some_dataset_column`->`sub_dataset_column`