def test_is_expired_with_no_back(self): parser = DNIScumParser(DNI_NEW_NO_BACK) reference_date = datetime(year=2030, month=12, day=1).date() self.assertTrue(parser.is_expired(reference_date))
def test_not_is_expired_with_back_mr(self): parser = DNIScumParser(DNI_NEW) reference_date = datetime(year=2017, month=12, day=1).date() self.assertFalse(parser.is_expired(reference_date))