'If no defined range match, extrapolate all ranges using the most
common syntax amongst existing buckets and return the matching one.'

def test_year_out_of_range_extrapolate(self):

    self._setup_config(bucket_year=['1950-59', '1960-69'], extrapolate=True)
    self.assertEqual(self.plugin._tmpl_bucket('1914'), '1910-19')
    self._setup_config(bucket_year=['1962-81', '2002', '2012'], extrapolate=True)
    self.assertEqual(self.plugin._tmpl_bucket('1983'), '1982')
    self._setup_config(bucket_year=['1962-81', '2002', '2012-14'], extrapolate=True)
    self.assertEqual(self.plugin._tmpl_bucket('1983'), '1982-01')
    self._setup_config(bucket_year=['1932', '1942', '1952', '1962-81', '2002'], extrapolate=True)
    self.assertEqual(self.plugin._tmpl_bucket('1975'), '1962-81')
