'Test that indexing into a term with a non-existent asset raises the
proper exception.'

def test_non_existent_asset(self):

    my_asset = Asset(0, exchange='TEST')
    returns = Returns(window_length=2, inputs=[self.col])
    returns_slice = returns[my_asset]
    class UsesSlicedInput(CustomFactor, ):
        window_length = 1
        inputs = [returns_slice]
        def compute(self, today, assets, out, returns_slice):
            pass
    with self.assertRaises(NonExistentAssetInTimeFrame):
        self.run_pipeline(Pipeline(columns={'uses_sliced_input': UsesSlicedInput()}), self.pipeline_start_date, self.pipeline_end_date)
