def METHOD_NAME(self):
    self.graph.add_node("a")
    self.graph.add_node("weight_a", weight=0.3)
    self.assertEqual(self.graph.nodes["weight_a"]["weight"], 0.3)
    self.assertEqual(self.graph.nodes["a"]["weight"], None)