示例#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))
示例#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])
示例#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])
示例#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))
示例#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]))
示例#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'])
示例#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]))