def test_date(self): self.assertIsNotNone(now_reign_year()) self.assertEqual(reign_year_to_ad(2, 10), 2017) self.assertIsNotNone(reign_year_to_ad(2, 9)) self.assertIsNotNone(reign_year_to_ad(2, 8)) self.assertIsNotNone(reign_year_to_ad(2, 7))