def sprint1n2n3n4UserStories():
    fileName = "InputGedFiles/SprintAcceptance/testSprint1_2_3_4_Acceptance.ged"
    indiObj, familyObj, lines = processGedFile(fileName)
    indiTable, familyTable = printTablesData(indiObj, familyObj)
    errorList = []
    errorList.extend(userStory01(fileName))
    errorList.extend(userStory02(fileName))
    errorList.extend(userStory03(fileName))
    errorList.extend(userStory04(fileName))
    errorList.extend(userStory05(fileName))
    errorList.extend(userStory06(fileName))
    errorList.extend(userStory07(fileName))
    errorList.extend(userStory08(fileName))
    errorList.extend(userStory09(fileName))
    errorList.extend(userStory10(fileName))
    errorList.extend(userStory11(fileName))
    errorList.extend(userStory12(fileName))
    errorList.extend(userStory13(fileName))
    errorList.extend(userStory14(fileName))
    errorList.extend(userStory15(fileName))
    errorList.extend(userStory16(fileName))
    errorList.extend(userStory17(fileName))
    errorList.extend(userStory18(fileName))
    errorList.extend(userStory19(fileName))
    errorList.extend(userStory20(fileName))
    errorList.extend(userStory21(fileName))
    errorList.extend(userStory22(fileName))
    errorList.extend(userStory23(fileName))
    errorList.extend(userStory24(fileName))
    errorList.extend(userStory25(fileName))
    errorList.extend(userStory26(fileName))
    errorList.extend(userStory27(fileName))
    errorList.extend(userStory28(fileName))
    errorList.extend(userStory29(fileName))
    errorList.extend(userStory30(fileName))
    errorList.extend(userStory31(fileName))
    errorList.extend(userStory32(fileName))
    errorList.extend(userStory33(fileName))
    errorList.extend(userStory34(fileName))
    errorList.extend(userStory35(fileName))
    errorList.extend(userStory36(fileName))
    errorList.extend(userStory37(fileName))
    errorList.extend(userStory38(fileName))
    errorList.extend(userStory39(fileName))

    for eachError in errorList:
        print(eachError)

    with open('sprint1n2n3n4Output.txt', 'w') as file:
        file.write('\n\nIndividuals Information----------------------->\n')
        file.write(indiTable.get_string())
        file.write("\n")
        file.write('\n\nFamily Information----------------------->\n')
        file.write(familyTable.get_string())
        file.write("\n")
        for eachError in errorList:
            file.write(eachError + "\n")
 def test_userStory09_5(self):
     resultsList = userStory09('InputGedFiles/UserStory09_GED/FamilyTree_Test_I2DeathDateChange.ged')
     self.assertEqual(resultsList, ["ERROR: FAMILY: US09: 39: F1: Wife (I2) died 1962-07-02 before child's (I3) birth 1962-07-03"])
 def test_userStory09_4(self):
     resultsList = userStory09('InputGedFiles/UserStory09_GED/FamilyTree_Test_I3BirthDateChange.ged')
     self.assertEqual(resultsList, ["ERROR: FAMILY: US09: 25: F1: Husband (I1) died 1984-01-09 before child's (I3) birth 2062-07-03",
                                     "ERROR: FAMILY: US09: 39: F1: Wife (I2) died 2017-02-09 before child's (I3) birth 2062-07-03"])
 def test_userStory09_3(self):
     resultsList = userStory09('InputGedFiles/UserStory09_GED/FamilyTree_Test_I9BirthDateChange.ged')
     self.assertEqual(resultsList, [])
 def test_userStory09_2(self):
     resultsList = userStory09('InputGedFiles/UserStory09_GED/FamilyTree_Test_BirthDateisDeathDate.ged')
     self.assertEqual(resultsList, [])
 def test_userStory09_1(self):
     resultsList = userStory09('InputGedFiles/UserStory09_GED/FamilyTree.ged')
     self.assertEqual(resultsList, [])