def test_add_after_node(self): llist = DoublyLinkedList() llist.append('A') llist.append('B') llist.append('D') llist.add_after_node('B', 'C') self.assertEqual(repr(llist), 'A, B, C, D')