def test_no_eol_date(self): s = series_status.Series({ 'name': 'austin', 'status': 'end of life', 'initial-release': datetime.date(2010, 10, 21), }) self.assertIsNone(s.eol_date)
def test_no_next_phase(self): s = series_status.Series({ 'name': 'rocky', 'status': 'development', 'initial-release': datetime.date(2018, 8, 30), }) self.assertIsNone(s.next_phase)
def test_eol_date(self): s = series_status.Series({ 'name': 'icehouse', 'status': 'end of life', 'initial-release': datetime.date(2014, 4, 17), 'eol-date': datetime.date(2015, 7, 2), }) self.assertIsNotNone(s.eol_date)