def test_create_relation(self) -> None:
    relations = self.table_source.create_relation()
    self.assertEquals(len(relations), 1)
    serialized_relation = neo4_serializer.serialize_relationship(relations[0])
    expected_relation = {RELATION_START_KEY: self.start_key, RELATION_START_LABEL: TableSource.LABEL, RELATION_END_KEY: self.end_key, RELATION_END_LABEL: 'Table', RELATION_TYPE: TableSource.SOURCE_TABLE_RELATION_TYPE, RELATION_REVERSE_TYPE: TableSource.TABLE_SOURCE_RELATION_TYPE}
    self.assertDictEqual(expected_relation, serialized_relation)
def test_create_relation(self) -> None:
    relations = self.table_source.create_relation()
    self.assertEquals(len(relations), 1)
    serialized_relation = neo4_serializer.serialize_relationship(relations[0])
    expected_relation = {RELATION_START_KEY: self.start_key, RELATION_START_LABEL: TableSource.LABEL, RELATION_END_KEY: self.end_key, RELATION_END_LABEL: 'Table', RELATION_TYPE: TableSource.SOURCE_TABLE_RELATION_TYPE, RELATION_REVERSE_TYPE: TableSource.TABLE_SOURCE_RELATION_TYPE}
    self.assertDictEqual(expected_relation, serialized_relation)