'input (df):
asof_date  timestamp  other  value
0 2013-12-22 2013-12-22    NaN      0
1 2013-12-23 2013-12-23      1    NaN
2 2013-12-24 2013-12-24    NaN    NaN
output (expected):
other  value
2014-01-01      1      0
2014-01-02      1      0
2014-01-03      1      0'

def test_id_ffill_out_of_window_macro_dataset(self):

    dates = (self.dates - timedelta(days=10))
    df = pd.DataFrame({'value': (0, np.nan, np.nan), 'other': (np.nan, 1, np.nan), 'asof_date': dates, 'timestamp': dates})
    fields = OrderedDict(self.macro_dshape.measure.fields)
    fields['other'] = fields['value']
    expected = pd.DataFrame(data=[[0, 1], [0, 1], [0, 1]], columns=['other', 'value'], index=self.dates)
    self._test_id_macro(df, (var * Record(fields)), expected, self.asset_finder, ('value', 'other'))
