class_docstr: Unit tests for :func:`~networkx.geographical_threshold_graph`
class_docstr_tok: ["Unit","tests","for",":","func",":","`","~networkx.geographical_threshold_graph","`"]
code: def test_pos_weight_name(self):
      gtg = nx.geographical_threshold_graph
      G = gtg(50, 100, seed=42, pos_name="coords", weight_name="wt")
      assert all(len(d["coords"]) == 2 for n, d in G.nodes.items())
      assert all(d["wt"] > 0 for n, d in G.nodes.items())
  
imports: import math
  import random
  from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 5 for calling the TestGeographicalThresholdGraph obj's underlying member method code with example usage: obj.test_pos_weight_name() without return types