from linked_list import Node
from linked_list import LinkedList


def test_node_data():
    newNode = Node("Bob")
    assert newNode.data == "Bob"


def test_node_add():
    bob = Node("Bob")
    newList = LinkedList()
    newList.insert(bob)
    assert newList.firstNode.data == "Bob"


def test_next_node_none():
    bob = Node("Bob")
    newList = LinkedList()
    newList.insert(bob)
    assert newList.firstNode.nextNode is None


def test_add_second_node():
    joe = Node("Joe")
    bob = Node("Bob")
    newList = LinkedList()
    newList.insert(bob)
    newList.insert(joe)
    assert newList.firstNode.nextNode.data == "Bob"

@@ -608,28 +608,916 @@
 Node.nextNode.data == %22Bob%22%0A
+%0A%0Adef test_pop():%0A    joe = Node(%22Joe%22)%0A    bob = Node(%22Bob%22)%0A    newList = LinkedList()%0A    newList.insert(bob)%0A    newList.insert(joe)%0A    assert newList.pop() == %22Joe%22%0A%0A%0Adef test_size():%0A    joe = Node(%22Joe%22)%0A    bob = Node(%22Bob%22)%0A    newList = LinkedList()%0A    newList.insert(bob)%0A    newList.insert(joe)%0A    assert newList.size() == 2%0A%0A%0Adef test_search_fail():%0A    joe = Node(%22Joe%22)%0A    bob = Node(%22Bob%22)%0A    newList = LinkedList()%0A    newList.insert(bob)%0A    newList.insert(joe)%0A    assert newList.search(%22Fred%22) is None%0A%0A%0Adef test_search_success():%0A    joe = Node(%22Joe%22)%0A    bob = Node(%22Bob%22)%0A    newList = LinkedList()%0A    newList.insert(bob)%0A    newList.insert(joe)%0A    assert newList.search(%22Bob%22) == bob%0A%0A%0Adef test_remove():%0A    joe = Node(%22Joe%22)%0A    bob = Node(%22Bob%22)%0A    newList = LinkedList()%0A    newList.insert(bob)%0A    newList.insert(joe)%0A    assert newList.remove(%22Bob%22)%0A

Add additional tests