Exemple #1
0
 def testUS21(self):
     inputGed = open("data/inputForTest_MW.ged", "r")
     result = us01.parseGed(inputGed)
     individual = result[0]
     family = result[1]
     for i in family:
         self.assertTrue(us21.CheckGenderForRole(family[i], individual))
Exemple #2
0
 def testUS20(self):
     inputGed = open("data/inputForTest_MW.ged", "r")
     result = us01.parseGed(inputGed)
     individual = result[0]
     family = result[1]
     for i in family:
         temp = us20.NotMarryNiecesAndNephews(family[i], family, individual)
         self.assertTrue(temp[0])
Exemple #3
0
 def testUS13(self):
     inputGed = open("data/inputForTest_MW.ged", "r")
     result = us01.parseGed(inputGed)
     individual = result[0]
     family = result[1]
     for i in family:
         temp = us13.SiblingsSpacing(family[i], individual)
         self.assertTrue(temp[0])
Exemple #4
0
 def testUS01(self):
     inputGed = open("data/inputForTest_MW.ged", "r")
     result = us01.parseGed(inputGed)
     individual = result[0]
     for i in individual:
         self.assertTrue(us01.BirthBeforeCurrent(i))
         self.assertTrue(us01.DeathBeforeCurrent(i))
         self.assertTrue(us01.MarriageBeforeCurrent(i))
         self.assertTrue(us01.DivorceBeforeCurrent(i))
Exemple #5
0
 def testUS08(self):
     inputGed = open("data/inputForTest_MW.ged", "r")
     result = us01.parseGed(inputGed)
     individual = result[0]
     family = result[1]
     for index in family:
         for child in family[index].children:
             self.assertTrue(
                 us08.BirthBeforeMarriageOfParents(family[index],
                                                   individual[child]))
Exemple #6
0
 def testUS35(self):
     inputGed = open("data/inputForTest_MW.ged", "r")
     result = us01.parseGed(inputGed)
     individual = result[0]
     self.assertEqual(us35.RecentBirths(individual), ['I1'])
Exemple #7
0
 def testUS02(self):
     inputGed = open("data/inputForTest_MW.ged", "r")
     result = us01.parseGed(inputGed)
     individual = result[0]
     for indi in individual:
         self.assertTrue(us02.BirthBeforeMarriage(individual[indi]))