Beispiel #1
0
 def testUserStory02_3(self):
     resultsList = userStory02("AkhileshReddyFamily_US2_03.ged")
     self.maxDiff = None
     self.assertEqual(resultsList, [
         "ERROR: FAMILY: US02: : I3: Wife's birth date 2020-08-02 is after marriage date 1995-03-05",
         "ERROR: FAMILY: US02: : I7: Husband's birth date 2020-08-29 is after marriage date 1960-08-06",
         "ERROR: FAMILY: US02: : I8: Wife's birth date 2020-11-20 is after marriage date 1960-08-06"
     ])
Beispiel #2
0
def sprint1_results():
    fileName = "sprint1_Reddy.ged"
    indiObj, familyObj = processGEDCOM(fileName)
    indiTable, familyTable = printTable(indiObj, familyObj)
    errors = []
    errors.extend(userStory01(fileName))
    errors.extend(userStory02(fileName))
    errors.extend(userStory03(fileName))
    errors.extend(userStory04(fileName))

    for e in errors:
        print(e)

    with open('acceptance_results.txt', 'w') as file:
        file.write('Individuals Information--------------->\n')
        file.write(indiTable.get_string())
        file.write("\n\n\n")
        file.write('Family Information------------>\n')
        file.write(familyTable.get_string())
        file.write("\n\n")
        for e in errors:
            file.write(e + "\n")
Beispiel #3
0
 def testUserStory02_1(self):
     resultsList = userStory02("AkhileshReddyFamily.ged")
     self.maxDiff = None
     self.assertEqual(resultsList, [])
Beispiel #4
0
 def testUserStory02_2(self):
     resultsList = userStory02("AkhileshReddyFamily_US2_02.ged")
     self.maxDiff = None
     self.assertEqual(resultsList, ["ERROR: FAMILY: US02: I3: Wife's birth date 2020-08-02 is after marriage date 1995-03-05"])