예제 #1
0
 def testUserStory03_4(self):
     resultsList = userStory03("AkhileshReddyFamily_US3_04.ged")
     self.maxDiff = None
     self.assertEqual(resultsList, [
         "ERROR: INDIVIDUAL: US03: : I6: Person's birth date 2020-09-13 is after death date 2001-11-12",
         "ERROR: INDIVIDUAL: US03: : I7: Person's birth date 2020-08-29 is after death date 2017-10-11",
         "ERROR: INDIVIDUAL: US03: : I8: Person's birth date 2020-11-20 is after death date 2019-02-14"
     ])
예제 #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")
예제 #3
0
 def testUserStory03_1(self):
     resultsList = userStory03("AkhileshReddyFamily.ged")
     self.maxDiff = None
     self.assertEqual(resultsList, [])
예제 #4
0
 def testUserStory03_2(self):
     resultsList = userStory03("AkhileshReddyFamily_US3_02.ged")
     self.maxDiff = None
     self.assertEqual(resultsList, [
         "ERROR: INDIVIDUAL: US03: : I5: Person's birth date 2020-10-07 is after death date 1999-04-13"
     ])