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))
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])
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])
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))
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]))
def testUS35(self): inputGed = open("data/inputForTest_MW.ged", "r") result = us01.parseGed(inputGed) individual = result[0] self.assertEqual(us35.RecentBirths(individual), ['I1'])
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]))