def test01(self): indivs = main_parser.tester(self.gedfiles[0])[0] result_file = self.txtfiles[0] result = compare.compare(us29.listdeceased(indivs, print_table=False), result_file, "US29") self.results += result self.assertEqual(len(result) == 0, True)
def test02(self): indivs = main_parser.tester(self.gedfiles[1])[0] result_file = self.txtfiles[1] result = compare.compare(us31.listsingle(indivs, print_table=False), result_file, "US31") self.results += result self.assertEqual(len(result) == 0, False)
def test01(self): indivs, fams = main_parser.tester(self.gedfiles[0])[:2] result_file = self.txtfiles[0] result = compare.compare( us33.listorphaned(indivs, fams, print_table=False), result_file, 'US33') self.results += result self.assertEqual(len(result) == 0, True)
def test03(self): indivs, families = main_parser.tester(self.gedfiles[2])[:2] result_file = self.txtfiles[2] result = compare.compare( us32.list_multiple_births(indivs, families, print_table=False), result_file, 'US32') self.results += result self.assertEqual(len(result) == 0, True)
def test02(self): indivs = main_parser.tester(self.gedfiles[1])[0] result_file = self.txtfiles[1] result = compare.compare( us35.list_recently_born(indivs, print_table=False), result_file, 'US35') self.results += result self.assertEqual(len(result) == 0, False)
def test03(self): indivs = main_parser.tester(self.gedfiles[0])[0] result_file = self.txtfiles[2] result = compare.compare( us38.list_upcoming_bdays(indivs, print_table=False, custom_date='2020-12-31'), result_file, "US38") self.results += result self.assertTrue(len(result) == 0)
def test03(self): fams = main_parser.tester(self.gedfiles[1])[1] result_file = self.txtfiles[2] result = compare.compare( us39.list_upcoming_annivs(fams, print_table=False, custom_date='2020-12-30'), result_file, "US39") self.results += result self.assertTrue(len(result) == 0)
def test01(self): indivs = main_parser.tester(self.gedfiles[0])[0] result_file = self.txtfiles[1] result = compare.compare( us35.list_recently_born(indivs, print_table=False, custom_date='2020-04-01'), result_file, 'US35') self.results += result self.assertEqual(len(result) == 0, True)
def test02(self): indivs, fams = main_parser.tester(self.gedfiles[1])[:2] res = us18.check_marr_sib(indivs, fams) self.errors += res self.assertEqual(len(res), 4)
def test03(self): fams = main_parser.tester(self.gedfiles[2])[1] result = us24.verify_unique_families(fams) self.results += result self.assertEqual(len(result) == 0, True)
def test03(self): indivs = main_parser.tester(self.gedfiles[2])[0] result = us23.verify_unique_namesbdate(indivs) self.results += result self.assertEqual(len(result) == 0, True)
def test02(self): indivs = main_parser.tester(self.gedfiles[0])[0] result_file = self.txtfiles[1] result = compare.compare(us27.indiv_prettytable(indivs), result_file, "US27") self.results += result self.assertEqual(len(result) == 0, False)
def test03(self): indivs, fams = main_parser.tester(self.gedfiles[2])[:2] res = us17.check_marr_child(indivs, fams) self.errors += res self.assertEqual(len(res), 0)
def test01(self): #birthdays individuals, families = main_parser.tester(self.gedfiles[1])[:2] error = us01.check_all_dates(individuals, families) self.errors += error self.assertEqual(len(error) == 0, False)
def test02(self): families = main_parser.tester(self.gedfiles[1])[1] error = us15.number_siblings(families) self.errors += error self.assertEqual(len(error) == 0, False)
def test03(self): individuals, families = main_parser.tester(self.gedfiles[2])[:2] error = us05.marriage_before_death(individuals, families) self.errors += error self.assertEqual(len(error) == 0, True)
def test02(self): individuals = main_parser.tester(self.gedfiles[1])[0] result = us03.bbd(individuals) self.results += result self.assertEqual(len(result) == 0, False)
def test04(self): #divorced date individuals, families = main_parser.tester(self.gedfiles[4])[:2] error = us01.check_all_dates(individuals, families) self.errors += error self.assertEqual(len(error) == 0, False)
def test02(self): indivs, families = main_parser.tester(self.gedfiles[1])[:2] result_file = self.txtfiles[1] result = compare.compare(us28.list_siblings(indivs, families, print_table=False), result_file, 'US28') self.results += result self.assertEqual(len(result) == 0, True)
def test02(self): indivs, fams = main_parser.tester(self.gedfiles[1])[:2] result = us06.divorce_before_death(indivs, fams) self.results += result self.assertEqual(len(result) == 0, True)
def test02(self): individuals, families = main_parser.tester(self.gedfiles[1])[:2] result = us02.bbm(individuals, families) self.results += result self.assertEqual(len(result) == 0, False)
def test05(self): #normal individuals, families = main_parser.tester(self.gedfiles[0])[:2] error = us01.check_all_dates(individuals, families) self.errors += error self.assertEqual(len(error) == 0, True)
def test03(self): families = main_parser.tester(self.gedfiles[2])[1] error = us04.marriage_before_divorce(families) self.errors += error self.assertEqual(len(error) == 0, True)
def test02(self): indivs, fams = main_parser.tester(self.gedfiles[1])[:2] result_file = self.txtfiles[1] result = compare.compare(us30.listmarried(indivs, fams, print_table=False), result_file, "US30") self.results += result self.assertEqual(len(result) == 0, False)