Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 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)
Beispiel #5
0
 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)
Beispiel #6
0
 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)
Beispiel #7
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)
Beispiel #8
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)
Beispiel #9
0
 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)
Beispiel #10
0
 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)
Beispiel #11
0
 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)
Beispiel #12
0
 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)
Beispiel #13
0
 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)
Beispiel #14
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)
Beispiel #15
0
 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)
Beispiel #16
0
 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)
Beispiel #17
0
 def test02(self):
     individuals = main_parser.tester(self.gedfiles[1])[0]
     result = us03.bbd(individuals)
     self.results += result
     self.assertEqual(len(result) == 0, False)
Beispiel #18
0
 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)
Beispiel #19
0
 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)
Beispiel #20
0
 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)
Beispiel #21
0
 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)
Beispiel #22
0
 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)
Beispiel #23
0
 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)
Beispiel #24
0
 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)