def METHOD_NAME(self):
    self.assertEqual([(1998, 2000),
                      (2002, 2002),
                      (2005, 2006),
                      (2008, 2008)],
                     compress_years([1998, 1999, 2000, 2002, 2005, 2006, 2008]))