def test_US_21(self): """ Function that tests user story 21 """ repository = Repository("../GedcomFiles/SSW_555_updatedwithUS_2_3.ged") expected = [ 'US_21: Sam /Robinson/ gender is supposed to be female but is not on line number 269' ] actual = US_21(repository.get_individual(), repository.get_family()) self.assertEqual(expected, actual)
def test_US_22(self): """ Function that tests user story 22 """ repository = Repository("../GedcomFiles/US_22.ged") expected = ['KeyError: ' @ I6 @ ''] actual = US_22(repository.get_individual(), repository.get_family()) self.assertEqual(expected, actual)