def METHOD_NAME(self):
    normalize_run(self.pipeline)
    self.assertEqual(acyclic.remove_self_edges(self.pipeline), {})
    edges = {
        'self_edge0': {
            PWE.source: list(self.pipeline[PWE.activities].keys())[0],
            PWE.target: list(self.pipeline[PWE.activities].keys())[0],
        },
        'self_edge1': {
            PWE.source: list(self.pipeline[PWE.activities].keys())[1],
            PWE.target: list(self.pipeline[PWE.activities].keys())[1],
        }
    }
    self.pipeline[PWE.flows].update(edges)
    add_flow_id_to_node_io(list(self.pipeline[PWE.activities].values())[0], 'self_edge0', PWE.incoming)
    add_flow_id_to_node_io(list(self.pipeline[PWE.activities].values())[0], 'self_edge0', PWE.outgoing)
    add_flow_id_to_node_io(list(self.pipeline[PWE.activities].values())[1], 'self_edge1', PWE.incoming)
    add_flow_id_to_node_io(list(self.pipeline[PWE.activities].values())[1], 'self_edge1', PWE.outgoing)
    self.assertEqual(acyclic.remove_self_edges(self.pipeline), edges)
    normalize_undo(self.pipeline)
    self.assertEqual(self.pipeline, pipeline_with_circle)