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")
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)
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)