def test_resetNode(self):
     """
     Tests, that resetting a node returns its value to zero.
     :return:
     """
     node = Node()
     node.value = float(Fraction(7, 10))
     node.reset()
     self.assertEqual(0, node.value)
 def test_resetNodeWithInitialValue(self):
     """
     Tests, that resetting a node that was initialized with a value returns
     its value to that initial value.
     :return:
     """
     node_with_initial_value = Node(float(Fraction(1, 5)))
     node_with_initial_value.value = float(Fraction(1, 2))
     node_with_initial_value.reset()
     self.assertEqual(float(Fraction(1, 5)), node_with_initial_value.value)