Beispiel #1
0
    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
Beispiel #2
0
    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
Beispiel #3
0
    def test_create_entity_relation(self):
        rel = create_relation(self.profile)
        valid, msg = rel.valid()

        self.assertFalse(valid, msg)
Beispiel #4
0
    def test_create_entity_relation(self):
        rel = create_relation(self.profile)
        valid, msg = rel.valid()

        self.assertFalse(valid, msg)