Skip to content

Commit

Permalink
Added test for US42. Fixed test for US39.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eamon18 authored Nov 11, 2018
1 parent dcdb2ac commit 917005f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Unit_Test_Proj.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,16 @@ def list_multiple_births(self):

def test_list_anniversaries(self):
"""US39: Tests to ensure that all anniversaries to occur in the next 30 days are listed"""
list_of_known_errors = ["US39: Art /Versity/ and Ann /Versity/ have an anniversary coming in 29 days"]
list_of_known_errors = ["US39: Art /Versity/ and Ann /Versity/ have an anniversary coming within the next 30 days."]
for error in list_of_known_errors:
self.assertIn(error, self.all_errors)

def test_invalid_dates(self):
"""US42: Tests to ensure that all invalid dates are detected and rejected"""
list_of_known_errors = ["US42: -5 JAN 2014 is an illegitimate date for Jim /John/'s and Jan /Jobs/'s divorce. The date has been adjusted to the nearest valid date.",
"US42: 30 FEB 1990 is an illegitimate date for Jim /John/'s birthday. The date has been adjusted to the nearest valid date.",
"US42: 32 DEC 2012 is an illegitimate date for Jim /John/'s and Jan /Jobs/'s marriage. The date has been adjusted to the nearest valid date.",
"US42: 32 MAY 2015 is an illegitimate date for Jim /John/'s death. The date has been adjusted to the nearest valid date."]
for error in list_of_known_errors:
self.assertIn(error, self.all_errors)

Expand Down

0 comments on commit 917005f

Please sign in to comment.