Skip to content

Commit

Permalink
Added test for US19
Browse files Browse the repository at this point in the history
  • Loading branch information
Eamon18 authored Oct 30, 2018
1 parent 0bdd04c commit 92a3110
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Unit_Test_Proj.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ def test_no_marriage_to_siblings(self):
"US18: Gorl /Sib/ cannot be married to their sibling Boyle /Sib/"]
for error in list_of_known_errors:
self.assertIn(error, self.all_errors)

def test_no_marriage_to_cousin(self):
"""US19: Tests to ensure that no_marriage_to_cousin finds all individuals married to their cousin"""
list_of_known_errors =["US19: Curr /Two/ cannot be married to their cousin Cuz /One/",
"US19: Currt /Two/ cannot be married to their cousin Cuzt /Two/"]
for error in list_of_known_errors:
self.assertIn(error, self.all_errors)

def test_creepy_aunts_and_uncles(self):
"""US20: Tests to ensure that aunts and uncles should not marry their nieces or nephews"""
Expand Down

0 comments on commit 92a3110

Please sign in to comment.