def test_listMarried(self): self.assertTrue( listMarried(root_child_elements, root_child_elements[1])) self.assertTrue( listMarried(root_child_elements, root_child_elements[2])) self.assertTrue( listMarried(root_child_elements, root_child_elements[3])) self.assertTrue( listMarried(root_child_elements, root_child_elements[6])) self.assertFalse( listMarried(root_child_elements, root_child_elements[10]))
def test_great_grand_child(self): self.assertFalse(listMarried(root_child_elements, root_child_elements[10]))
def test_grand_child(self): self.assertTrue(listMarried(root_child_elements, root_child_elements[6]))
def test_first_child(self): self.assertTrue(listMarried(root_child_elements, root_child_elements[3]))
def test_family_head_spouse(self): self.assertTrue(listMarried(root_child_elements, root_child_elements[2]))