def test_delete(self):
     """
     Tests that the Node reference pointer has been
     deleted.
     """
     node = Node(1)
     node.insert_after(2)
     self.assertEqual(node.next.value, 2)
     node.delete()
     self.assertEqual(node.next, None)
 def test_insert_after(self):
     """
     Tests that a new Node with the inputted value
     has been inserted after this one.
     """
     node = Node("testing1")
     node.insert_after("testing2")
     self.assertEqual(node.next.value, "testing2")
     node.insert_after("testing3")
     self.assertEqual(node.next.value, "testing3")
     self.assertEqual(node.next.next.value, "testing2")