def test_get_relationship(self):
    self.assertEqual(self.ftree.get_relationship('Zim', 'brother_in_law'), constants.PERSON_NOT_FOUND)
    member = Member(1, 'Zim', 'Male')
    son_a = Member(2, 'SonA', 'Male')
    son_b = Member(3, 'SonB', 'Male')
    member.add_child(son_b)
    member.add_child(son_a)
    son_a.set_father(member)
    son_b.set_father(member)
    self.ftree.family_tree['Zim'] = member
    self.ftree.family_tree['SonA'] = son_a
    self.ftree.family_tree['SonB'] = son_b
    self.assertEqual(self.ftree.get_relationship('Zim', 'daughter'), constants.NONE)
    self.assertEqual(self.ftree.get_relationship('Zim', 'son'), 'SonA SonB')
def test_get_relationship(self):
    self.assertEqual(self.ftree.get_relationship('Zim', 'brother_in_law'), constants.PERSON_NOT_FOUND)
    member = Member(1, 'Zim', 'Male')
    son_a = Member(2, 'SonA', 'Male')
    son_b = Member(3, 'SonB', 'Male')
    member.add_child(son_b)
    member.add_child(son_a)
    son_a.set_father(member)
    son_b.set_father(member)
    self.ftree.family_tree['Zim'] = member
    self.ftree.family_tree['SonA'] = son_a
    self.ftree.family_tree['SonB'] = son_b
    self.assertEqual(self.ftree.get_relationship('Zim', 'daughter'), constants.NONE)
    self.assertEqual(self.ftree.get_relationship('Zim', 'son'), 'SonA SonB')