def _add_household_person_relation(self): rel = create_relation(self.profile) person_entity = add_person_entity(self.profile) append_person_columns(person_entity) household_entity = add_household_entity(self.profile) rel.parent = household_entity rel.child = person_entity rel.child_column = 'household_id' rel.parent_column = 'id' return rel
def test_create_entity_relation(self): rel = create_relation(self.profile) valid, msg = rel.valid() self.assertFalse(valid, msg)