예제 #1
0
 def test_incorrect(self):
     self.assertFalse(team6.listErrors(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US02-US03/test01.ged")), 'No errors occurred')
예제 #2
0
 def test_incorrect(self):
     self.assertFalse(team6.noBigamy(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US11-US14/test02.ged")), 'Bigamy occurred')
예제 #3
0
 def test_correct(self):
     self.assertTrue(team6.listErrors(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US02-US03/test02.ged")), 'At least one error occurred')
예제 #4
0
 def test_none(self):
     self.assertIsNone(team6.marriageBeforeDeath(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US01-US05/test05.ged")), 'Death or marriage records missing')
예제 #5
0
 def test_correct(self):
     self.assertTrue(team6.noBigamy(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US11-US14/test01.ged")), 'Divorce always came before remarrage')
예제 #6
0
 def test_correct(self):
     self.assertTrue(team6.marriageBeforeDeath(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US01-US05/test03.ged")), 'Marriage came before death')
예제 #7
0
 def test_incorrect(self):
     self.assertFalse(team6.marriageBeforeDeath(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US01-US05/test04.ged")), 'Death came before Marriage')
예제 #8
0
 def test_correct(self):
     self.assertTrue(team6.datesBeforeCurrentDate(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US01-US05/test01.ged")), 'All dates came before current date')
예제 #9
0
 def test_incorrect(self):
     self.assertFalse(team6.datesBeforeCurrentDate(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US01-US05/test02.ged")), 'A date came after the current date')
예제 #10
0
 def test_none(self):
     self.assertIsNone(team6.birthBeforeMarriage(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US02-US03/test06.ged")), 'birth or marriage records missing')
예제 #11
0
 def test_incorrect(self):
     self.assertFalse(team6.birthBeforeMarriage(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US02-US03/test05.ged")), 'Marriage came before birth')
예제 #12
0
 def test_correct(self):
     self.assertTrue(team6.birthBeforeMarriage(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US02-US03/test04.ged")), 'Birth came before marriage')
예제 #13
0
 def test_none(self):
     self.assertIsNone(team6.birthBeforeDeath(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US02-US03/test03.ged")), 'Birth or death records missing')
예제 #14
0
 def test_correct(self):
     self.assertTrue(team6.birthBeforeDeath(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US02-US03/test01.ged")), 'Birth came before death')