def METHOD_NAME(self, src, tgt):
    with pytest.raises(
        nx.NodeNotFound,
        match=f"Either source {src} or target {tgt} is not in G",
    ):
        nx.bidirectional_shortest_path(self.cycle, src, tgt)