class_docstr: Unit tests for the :meth:`MultiGraph.edge_subgraph` method.
class_docstr_tok: ["Unit","tests","for","the",":","meth",":","`","MultiGraph.edge_subgraph","`","method","."]
docstr: Tests that the subgraph has the correct nodes.
docstr_tok: ["Tests","that","the","subgraph","has","the","correct","nodes","."]
code: def test_correct_nodes(self):
      """Tests that the subgraph has the correct nodes."""
      assert [0, 1, 3, 4] == sorted(self.H.nodes())
  
imports: from collections import UserDict
  import pytest
  import networkx
  from networkx.utils import edges_equal
  from .test_graph import BaseAttrGraphTester
  from .test_graph import TestGraph
label_desc: Use image node_id 2 for calling the TestEdgeSubgraph obj's underlying member method code with example usage: obj.test_correct_nodes() without return types