Exemplo n.º 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')
Exemplo n.º 2
0
 def test_incorrect(self):
     self.assertFalse(team6.noBigamy(team6.processGedcom(
         "tests/GEDCOM files for unit testing/US11-US14/test02.ged")), 'Bigamy occurred')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')