def test_append():
    append_test_list = LinkedList()
    append_test_list.append(20)
    actual = append_test_list.head.value
    excepted = 20
    assert actual == excepted
    actual = append_test_list.head.next
    excepted = None
    assert actual == excepted
def sample_linked_list_b():
    linked_list = LinkedList()
    linked_list.append(15)
    linked_list.append(25)
    linked_list.append(35)
    linked_list.append(45)
    linked_list.append(55)
    linked_list.append(65)
    return linked_list
def sample_linked_list():
    linked_list = LinkedList()
    linked_list.append(10)
    linked_list.append(20)
    linked_list.append(30)
    linked_list.append(40)
    return linked_list
 def add(self, key, val):
     hashed = self.hash(key)
     if not self.indicies[hashed]: self.indicies[hashed] = LinkedList()
     self.indicies[hashed].append([key, val])
def test__str__empty_list():
    empty_linked_list = LinkedList()
    actual = empty_linked_list.__str__()
    expected = 'None'
    assert actual == expected
def test_linked_list():
    test_list = LinkedList()
    actual = test_list.head
    expected = None
    assert actual == expected
def empty_ll():
    return LinkedList()