'confirm that the right number of riskmetrics were calculated for each
window length.'

def check_metrics(self, metrics, total_months, start_date):

    self.assert_range_length(metrics.month_periods, total_months, 1, start_date)
    self.assert_range_length(metrics.three_month_periods, total_months, 3, start_date)
    self.assert_range_length(metrics.six_month_periods, total_months, 6, start_date)
    self.assert_range_length(metrics.year_periods, total_months, 12, start_date)
