-
Notifications
You must be signed in to change notification settings - Fork 0
/
sprint4unittest.py
38 lines (30 loc) · 1.58 KB
/
sprint4unittest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import unittest
from gedcomFileParser import GEDCOMFileParser
from userStory import *
fileName = "falsetree.ged"
class test_us31_single_over_30years(unittest.TestCase):
def test_us31_single_over_30years_1(self):
individuals, families = GEDCOMFileParser(fileName)
self.assertFalse(us31_single_over_30years(individuals, families))
class test_us33_list_orphans_below18years(unittest.TestCase):
def test_us33_list_orphans_below18years_1(self):
individuals, families = GEDCOMFileParser(fileName)
self.assertFalse(us33_list_orphans_below18years(individuals, families))
class test_us38_upcoming_birthdays(unittest.TestCase):
def test_us38_upcoming_birthdays_1(self):
individuals,_ = GEDCOMFileParser(fileName)
self.assertFalse(us38_upcoming_birthdays(individuals))
class test_us39_upcoming_anniversaries(unittest.TestCase):
def test_us39_upcoming_anniversaries_1(self):
_,families = GEDCOMFileParser(fileName)
self.assertFalse(us39_upcoming_anniversaries(families))
class test_us32_multiple_births_in_family(unittest.TestCase):
def test_us32_multiple_births_in_family_1(self):
individuals, families = GEDCOMFileParser(fileName)
self.assertFalse(us32_multiple_births_in_family(individuals,families))
class test_us37_list_living_spouses_descendents(unittest.TestCase):
def test_us37_list_living_spouses_descendents_1(self):
individuals, families = GEDCOMFileParser(fileName)
self.assertFalse(us37_list_living_spouses_descendents(individuals,families))
if __name__ == '__main__':
unittest.main()