class_docstr: Nose Unit tests for the :mod:`networkx.algorithms.planarity` module.
  
  Tests three things:
  1. Check that the result is correct
      (returns planar if and only if the graph is actually planar)
  2. In case a counter example is returned: Check if it is correct
  3. In case an embedding is returned: Check if its actually an embedding
class_docstr_tok: ["Nose","Unit","tests","for","the",":","mod",":","`","networkx.algorithms.planarity","`","module",".","Tests","three","things",":","1",".","Check","that","the","result","is","correct","(","returns","planar","if","and","only","if","the","graph","is","actually","planar",")","2",".","In","case","a","counter","example","is","returned",":","Check","if","it","is","correct","3",".","In","case","an","embedding","is","returned",":","Check","if","its","actually","an","embedding"]
code: def test_edge_removal_from_planar_embedding(self):
      # PlanarEmbedding.check_structure() must succeed after edge removal
      edges = ((0, 1), (1, 2), (2, 3), (3, 4), (4, 0), (0, 2), (0, 3))
      G = nx.Graph(edges)
      cert, P = nx.check_planarity(G)
      assert cert is True
      P.remove_edge(0, 2)
      self.check_graph(P, is_planar=True)
      P.add_half_edge_ccw(1, 3, 2)
      P.add_half_edge_cw(3, 1, 2)
      self.check_graph(P, is_planar=True)
      P.remove_edges_from(((0, 3), (1, 3)))
      self.check_graph(P, is_planar=True)
  
imports: import pytest
  import networkx
  from networkx.algorithms.planarity import check_planarity_recursive, get_counterexample, get_counterexample_recursive
label_desc: Use image node_id 23 for calling the TestLRPlanarity obj's underlying member method code with example usage: obj.test_edge_removal_from_planar_embedding() without return types