示例#1
0
 def test_get_value(self):
     """
     Returns the value of the current node
     """
     node = Node("test value")
     result = node.get_value()
     self.assertEqual(result, "test value")
示例#2
0
 def test_instantiates_with_none_default(self):
     """
     Instantiates with None as default if no value is given
     """
     node = Node()
     result = node.get_value()
     self.assertEqual(result, None)
示例#3
0
 def test_get_value_none(self):
     """
     Returns None when get_value is invoked if no value
     was passed to the node when instantiated
     """
     node = Node()
     result = node.get_value()
     self.assertEqual(result, None)